Update nuget/setup-nuget action to v4 #26
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 plugin | |
| on: | |
| - push | |
| - pull_request | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| name: checkout main repository | |
| - uses: actions/checkout@v2 | |
| name: checkout dependency DLLs | |
| with: | |
| ssh-key: '${{ secrets.DLLSSH }}' | |
| repository: hssb-racers/dlls | |
| path: DLLs | |
| - name: Add msbuild to PATH | |
| uses: microsoft/setup-msbuild@v1.0.2 | |
| - uses: nuget/setup-nuget@v4 | |
| - run: nuget restore | |
| - name: Build | |
| run: msbuild | |
| - name: Push DLL to Release | |
| uses: softprops/action-gh-release@v1 | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| with: | |
| files: | | |
| obj/Debug/TemplatePatch.dll | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| - name: Push DLL to workflow artifacts | |
| uses: actions/upload-artifact@v2 | |
| with: | |
| path: obj/Debug/TemplatePatch.dll |