Skip to content

Commit

Permalink
Merge pull request #1 from FFXIV-CombatReborn/deployment
Browse files Browse the repository at this point in the history
Deployment
  • Loading branch information
NostraThomas99 authored Mar 28, 2024
2 parents a62effc + 13d8c4f commit 7031cd9
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 16 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Publish
on:
push:
tags:
- 'v*.*.*.*'
jobs:
Build:
runs-on: ubuntu-latest
env:
DALAMUD_HOME: ${{ github.workspace }}/Dalamud/
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: true

- name: Get Environment Variables
run: |
tag=$(echo ${{ github.ref }} | sed 's/refs\/tags\/v//')
echo "tag=$tag" >> $GITHUB_ENV
if [[ "$tag" == *"-test" ]]; then
branch="testing"
tag=$(echo $tag | sed 's/-test//')
else
branch="latest"
fi
echo "branch=$branch" >> $GITHUB_ENV
- name: Set up .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x

- name: Download Dalamud Latest
run: |
wget https://goatcorp.github.io/dalamud-distrib/latest.zip -O ${{ env.DALAMUD_HOME }}.zip
unzip ${{ env.DALAMUD_HOME }}.zip -d ${{ env.DALAMUD_HOME }}
- name: Restore Nuget Packages
run: dotnet restore RotationSolver/RotationSolver.csproj

- name: Build Plugin
run: dotnet build --no-restore -c Release RotationSolver/RotationSolver.csproj -p:AssemblyVersion=${{ env.tag }} -p:FileVersion=${{ env.tag }} -p:InformationalVersion=${{ env.tag }}

- name: Publish Plugin
uses: softprops/action-gh-release@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: RotationSolverReborn ${{ env.tag }}
tag: ${{ env.tag }}
draft: false
make_latest: ${{ env.branch == 'latest' }}
prerelease: ${{ env.branch == 'testing' }}



16 changes: 0 additions & 16 deletions .github/workflows/release-please.yml

This file was deleted.

0 comments on commit 7031cd9

Please sign in to comment.