From 621b659ea679e1818b65a2c155e17997073a3517 Mon Sep 17 00:00:00 2001 From: Jackson <9527380+Jaksuhn@users.noreply.github.com> Date: Sat, 2 Dec 2023 17:11:38 +0000 Subject: [PATCH] add publish action --- .github/workflows/publish.yml | 49 +++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 000000000..8aa8341bd --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,49 @@ +name: Build & Publish to Dynamis + +on: + push: + tags: + - 'v*.*.*.*' + +jobs: + Build: + runs-on: ubuntu-latest + env: + DALAMUD_HOME: /tmp/dalamud + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + with: + submodules: true + + - name: Get Tag Name + run: echo "tag=$(echo ${{ github.ref }} | sed 's/refs\/tags\/v//')" >> $GITHUB_ENV + + - name: Set up .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 7.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 Project + run: dotnet restore + + - name: Build Project + run: dotnet build --configuration Release Automaton/Automaton.csproj -p:AssemblyVersion=${{ env.tag }} + + - name: Publish Version + uses: PunishXIV/dynamis-action@v1 + id: dynamis + with: + plugin_id: 44 + internal_name: 'RotationSolver' + version_number: ${{ env.tag }} + path: 'RotationSolver/bin/Release/RotationSolver/latest.zip' + type: 'latest' + dalamud_version: '9' + env: + PUBLISHER_KEY: ${{ secrets.PUBLISHER_KEY }}