RedistTool #54
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: RedistTool | |
| on: | |
| create: | |
| tags: | |
| - "*" | |
| push: | |
| branches: [ master ] | |
| paths: | |
| - '.github/actions/project-build/action.yaml' | |
| - '.github/actions/project-build/run-command-for-every-tests-project.ps1' | |
| - '.github/workflows/RedistTool.yaml' | |
| - 'src/**' | |
| - 'tests/**' | |
| pull_request: | |
| paths: | |
| - '.github/actions/project-build/action.yaml' | |
| - '.github/actions/project-build/run-command-for-every-tests-project.ps1' | |
| - '.github/workflows/RedistTool.yaml' | |
| - 'src/**' | |
| - 'tests/**' | |
| jobs: | |
| Build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| env: | |
| DOTNET_NOLOGO: true | |
| DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | |
| DOTNET_CLI_TELEMETRY_OPTOUT: true | |
| with: | |
| dotnet-version: 9.x | |
| - name: Build UnturnedRedistUpdateTool | |
| uses: ./.github/actions/project-build | |
| id: redist-update-tool-build | |
| with: | |
| project_path: src/UnturnedRedistUpdateTool | |
| github_token: ${{ secrets.PAT }} | |
| - name: Install zip | |
| run: sudo apt-get install zip | |
| - name: Zip UnturnedRedistUpdateTool artifacts | |
| run: "cd ./src/UnturnedRedistUpdateTool/bin/Release/net9.0/linux-x64 && zip -qq -r ./UnturnedRedistUpdateTool.zip *" | |
| - name: Upload UnturnedRedistUpdateTool | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: UnturnedRedistUpdateTool.zip | |
| path: "./src/UnturnedRedistUpdateTool/bin/Release/net9.0/linux-x64/UnturnedRedistUpdateTool.zip" | |
| if-no-files-found: error | |
| - name: Create Release | |
| if: github.event_name == 'create' && github.event.ref_type == 'tag' | |
| uses: ncipollo/release-action@v1 | |
| with: | |
| name: UnturnedRedistUpdateTool Release v${{ steps.redist-update-tool-build.outputs.version }} | |
| tag: ${{ steps.redist-update-tool-build.outputs.version }} | |
| artifacts: "./src/UnturnedRedistUpdateTool/bin/Release/net9.0/linux-x64/UnturnedRedistUpdateTool.zip" | |
| token: ${{ secrets.PAT }} | |
| prerelease: ${{ steps.redist-update-tool-build.outputs.is_prerelease }} | |
| allowUpdates: true | |
| draft: true |