update more #181
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: Build RadarPlugin | |
| on: | |
| push: | |
| branches: 'main' | |
| 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/setup-msbuild@v1.1 | |
| - name: Setup NuGet | |
| uses: NuGet/setup-nuget@v1.0.5 | |
| - 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 }}/* |