Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/Rocket.API.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: NuGet Package for Rocket.API
name: Rocket.API

on:
create:
Expand Down Expand Up @@ -28,7 +28,7 @@ jobs:
- uses: actions/setup-dotnet@v4
name: Setup .NET
with:
dotnet-version: 7.x
dotnet-version: 8.x

- uses: ./.github/actions/project-build
id: project-build
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/Rocket.Core.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: NuGet Package for Rocket.Core
name: Rocket.Core

on:
create:
Expand Down Expand Up @@ -28,7 +28,7 @@ jobs:
- uses: actions/setup-dotnet@v4
name: Setup .NET
with:
dotnet-version: 7.x
dotnet-version: 8.x

- uses: ./.github/actions/project-build
id: project-build
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/Rocket.Unturned.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: NuGet Package for Rocket.Unturned
name: Rocket.Unturned

on:
create:
Expand Down Expand Up @@ -28,7 +28,7 @@ jobs:
- uses: actions/setup-dotnet@v4
name: Setup .NET
with:
dotnet-version: 7.x
dotnet-version: 8.x

- uses: ./.github/actions/project-build
id: project-build
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/RocketModFix.Build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: RocketModFix.Build

on:
push:
branches: [ master ]
paths:
- '.github/workflows/RocketModFix.Build'
- 'Rocket/**'
- 'Rocket.Unturned/**'

jobs:
Build:
runs-on: windows-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- uses: actions/setup-dotnet@v4
name: Setup .NET
with:
dotnet-version: 8.x

- name: Build
run: dotnet build ./Rocket.Unturned/Rocket.Unturned.csproj /p:CreateRocketModUnturnedModuleArtifacts=false -c Release -f net461
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Artifacts for the RocketMod.Unturned Module on PR
name: RocketModFix.PullRequest.Artifacts

on:
pull_request:
paths:
- '.github/workflows/Rocket.Unturned.Module.PR.yaml'
- '.github/workflows/Rocket.Unturned.Module.yaml'
- '.github/workflows/RocketModFix.PullRequest.Artifacts.yaml'
- '.github/workflows/RocketModFix.Release.yaml'
- 'Rocket/**'
- 'Rocket.Unturned/**'

Expand All @@ -19,7 +19,7 @@ jobs:
- uses: actions/setup-dotnet@v4
name: Setup .NET
with:
dotnet-version: 7.x
dotnet-version: 8.x

- name: Build
run: dotnet build ./Rocket.Unturned/Rocket.Unturned.csproj /p:RocketModVersion=0.0.0-preview /p:CreateRocketModUnturnedModuleArtifacts=true -c Release -f net461
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Artifacts for the RocketMod.Unturned Module
name: RocketModFix.Release

on:
create:
Expand All @@ -7,6 +7,7 @@ on:

jobs:
Build:
if: github.event_name == 'create' && github.event.ref_type == 'tag'
runs-on: windows-latest

steps:
Expand All @@ -16,7 +17,7 @@ jobs:
- uses: actions/setup-dotnet@v4
name: Setup .NET
with:
dotnet-version: 7.x
dotnet-version: 8.x

- name: Build
run: dotnet build ./Rocket.Unturned/Rocket.Unturned.csproj /p:RocketModVersion=${{ github.ref_name }} /p:CreateRocketModUnturnedModuleArtifacts=true -c Release -f net461
Expand All @@ -42,13 +43,27 @@ jobs:
name: build
path: ./build/

- name: Create Release & Upload Assets
- name: Create version
id: get-version
run: echo "version=$(git describe --tags `git rev-list --tags --max-count=1`)" >> $GITHUB_OUTPUT
shell: bash

- name: Check Prerelease
id: check-prerelease
run: "if ${{ contains(steps.get-version.outputs.version, '-') }}; then
echo is_prerelease=true >> $GITHUB_OUTPUT;
else
echo is_prerelease=false >> $GITHUB_OUTPUT;
fi"
shell: bash

- name: Create Release
uses: ncipollo/release-action@v1.14.0
with:
name: v${{ github.ref_name }}
tag: v${{ github.ref_name }}
name: RocketModFix Release v${{ steps.get-version.outputs.version }}
tag: v${{ steps.get-version.outputs.version }}
artifacts: "./build/Rocket.Unturned.Module.zip"
token: ${{secrets.PAT}}
prerelease: false
token: ${{ secrets.PAT }}
prerelease: ${{ steps.check-prerelease.outputs.is_prerelease }}
allowUpdates: true
generateReleaseNotes: true