RocketModFix #196
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: RocketModFix | |
| on: | |
| create: | |
| tags: | |
| - "*" | |
| push: | |
| branches: [ master ] | |
| paths: | |
| - '.github/workflows/RocketModFix.yaml' | |
| - 'Rocket.AutoInstaller/**' | |
| - 'Rocket/**' | |
| - 'Rocket.Unturned/**' | |
| pull_request: | |
| paths: | |
| - '.github/workflows/RocketModFix.yaml' | |
| - 'Rocket.AutoInstaller/**' | |
| - 'Rocket/**' | |
| - 'Rocket.Unturned/**' | |
| jobs: | |
| Compatibility-Check: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-dotnet@v5 | |
| name: Setup .NET | |
| with: | |
| dotnet-version: 8.x | |
| - name: Check compatibility with original repository | |
| uses: ./.github/actions/compatibility-check | |
| with: | |
| fail-on-breaking-changes: true | |
| Build: | |
| runs-on: ubuntu-latest | |
| needs: Compatibility-Check | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-dotnet@v5 | |
| name: Setup .NET | |
| with: | |
| dotnet-version: 8.x | |
| - name: Build Rocket.AutoInstaller | |
| uses: ./.github/actions/project-build | |
| id: auto-installer-build | |
| with: | |
| project_path: Rocket.AutoInstaller | |
| nuget_key: ${{ secrets.NUGET_DEPLOY_KEY }} | |
| nuget_push: false | |
| github_token: ${{ secrets.PAT }} | |
| - name: Build Rocket.Unturned.Module | |
| uses: ./.github/actions/project-build | |
| id: unturned-module-build | |
| with: | |
| project_path: Rocket.Unturned | |
| nuget_key: ${{ secrets.NUGET_DEPLOY_KEY }} | |
| nuget_push: false | |
| github_token: ${{ secrets.PAT }} | |
| - name: Upload Rocket.AutoInstaller | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: Rocket.AutoInstaller | |
| path: "./Rocket.AutoInstaller/bin/Release/net461/linux-x64/Rocket.AutoInstaller/" | |
| if-no-files-found: error | |
| - name: Upload Rocket.Unturned.Module | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: Rocket.Unturned.Module | |
| path: "./Rocket.Unturned/bin/Release/net461/linux-x64/Rocket.Unturned/" | |
| if-no-files-found: error | |
| - name: Zip Rocket.AutoInstaller artifacts | |
| run: "cd ./Rocket.AutoInstaller/bin/Release/net461/linux-x64/Rocket.AutoInstaller && zip -qq -r ./Rocket.AutoInstaller.zip *" | |
| - name: Zip Rocket.Unturned artifacts | |
| run: "cd ./Rocket.Unturned/bin/Release/net461/linux-x64/Rocket.Unturned && zip -qq -r ./Rocket.Unturned.Module.zip *" | |
| - name: Create Release | |
| if: github.event_name == 'create' && github.event.ref_type == 'tag' | |
| uses: ncipollo/[email protected] | |
| with: | |
| name: RocketModFix Release v${{ steps.auto-installer-build.outputs.version }} | |
| tag: ${{ steps.auto-installer-build.outputs.version }} | |
| artifacts: | | |
| ./Rocket.AutoInstaller/bin/Release/net461/linux-x64/Rocket.AutoInstaller/Rocket.AutoInstaller.zip | |
| ./Rocket.Unturned/bin/Release/net461/linux-x64/Rocket.Unturned/Rocket.Unturned.Module.zip | |
| token: ${{ secrets.PAT }} | |
| prerelease: ${{ steps.auto-installer-build.outputs.is_prerelease }} | |
| allowUpdates: true | |
| draft: true |