[stg] 7.4 patch #92
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Upload to Plugin Repository | |
| on: | |
| push: | |
| tags: | |
| - '*' | |
| env: | |
| SOLUTION_NAME: RadarPlugin | |
| INTERNAL_NAME: RadarPlugin | |
| RELEASE_DIR: ./RadarPlugin/bin/x64/Release/RadarPlugin | |
| PERSONAL_PLUGIN_REPO: KangasZ/DalamudPluginRepository | |
| BRANCH: main | |
| jobs: | |
| build: | |
| runs-on: [windows-2022] | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Setup MSBuild | |
| uses: microsoft/[email protected] | |
| - name: Setup NuGet | |
| uses: NuGet/[email protected] | |
| - name: Restore NuGet Packages | |
| run: nuget restore ${{ env.SOLUTION_NAME }}.sln | |
| - name: Download Dalamud | |
| if: "!contains(github.event.head_commit.message, '[stg]') && !contains(github.event.head_commit.message, '[api11]')" | |
| run: | | |
| Invoke-WebRequest -Uri https://goatcorp.github.io/dalamud-distrib/latest.zip -OutFile latest.zip | |
| Expand-Archive -Force latest.zip "$env:AppData\XIVLauncher\addon\Hooks\dev" | |
| - name: Download Dalamud staging | |
| if: "contains(github.event.head_commit.message, '[stg]')" | |
| run: | | |
| Invoke-WebRequest -Uri https://goatcorp.github.io/dalamud-distrib/stg/latest.zip -OutFile latest.zip | |
| Expand-Archive -Force latest.zip "$env:AppData\XIVLauncher\addon\Hooks\dev" | |
| - name: Download Dalamud 11 | |
| if: "contains(github.event.head_commit.message, '[api11]')" | |
| run: | | |
| Invoke-WebRequest -Uri https://goatcorp.github.io/dalamud-distrib/api11/latest.zip -OutFile latest.zip | |
| Expand-Archive -Force latest.zip "$env:AppData\XIVLauncher\addon\Hooks\dev" | |
| - name: Build | |
| run: msbuild ${{ env.SOLUTION_NAME }}.sln /p:Configuration=Release | |
| - name: Upload Build Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| path: ${{ env.RELEASE_DIR }}/* | |
| deploy: | |
| needs: build | |
| runs-on: [ubuntu-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| repository: ${{ env.PERSONAL_PLUGIN_REPO }} | |
| token: ${{ secrets.PAT }} | |
| ref: ${{ env.BRANCH }} | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: artifact | |
| path: plugins/${{ env.INTERNAL_NAME }} | |
| - uses: EndBug/add-and-commit@v7 | |
| with: | |
| add: --all | |
| author_name: GitHub Action | |
| author_email: github-actions[bot]@users.noreply.github.com | |
| branch: ${{ env.BRANCH }} | |
| message: Update ${{ env.INTERNAL_NAME }} |