it's (build ci) all out of date #12
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: AdvancedHints CI | |
| on: [push, workflow_dispatch] | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Setup .NET Core SDK | |
| uses: actions/[email protected] | |
| - uses: actions/[email protected] | |
| - name: Get references | |
| shell: pwsh | |
| run: | | |
| Invoke-WebRequest -Uri ${{ env.EXILED_REFERENCES_URL }} -OutFile References.zip | |
| Expand-Archive -Path References.zip -DestinationPath References | |
| - name: Restore project | |
| run: dotnet restore -p:Configuration=Release | |
| - name: Build project | |
| shell: pwsh | |
| run: | | |
| if ('${{ GITHUB.REF }}' -Match 'dev$') { | |
| dotnet build -p:DeployToServer=false -p:Configuration=Release -p:BuildNumber=${{ GITHUB.RUN_NUMBER }} | |
| } else { | |
| dotnet build -p:DeployToServer=false -p:Configuration=Release | |
| } | |
| env: | |
| EXILED_REFERENCES: ${{ github.workspace }}/References | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Build Results | |
| path: AdvancedHints/bin/Release |