mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-30 08:33:19 +01:00
Adjust ReleaseNotes to ensure the latest release is a TGS release
[APIDeploy][NugetDeploy][TGSDeploy] Closes #1141
This commit is contained in:
@@ -650,9 +650,26 @@ jobs:
|
||||
INCLUDE_SYMBOLS: true
|
||||
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
|
||||
|
||||
ensure-release:
|
||||
name: Ensure TGS Release is Latest GitHub Release
|
||||
needs: [deploy-dm, deploy-http]
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event_name == 'push' && !(github.event.ref == 'refs/heads/master' && contains(github.event.head_commit.message, '[TGSDeploy]')) && (contains(github.event.head_commit.message, '[APIDeploy]') || contains(github.event.head_commit.message, '[DMDeploy]'))
|
||||
steps:
|
||||
- name: Setup dotnet
|
||||
uses: actions/setup-dotnet@v2
|
||||
with:
|
||||
dotnet-version: ${{ env.TGS_DOTNET_VERSION }}
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Run ReleaseNotes with --ensure-release
|
||||
run: dotnet run -c Release --project tools/ReleaseNotes --ensure-release
|
||||
|
||||
deploy-tgs:
|
||||
name: Deploy TGS
|
||||
needs: [upload-code-coverage, validate-openapi-spec]
|
||||
needs: [deploy-dm, deploy-http]
|
||||
runs-on: windows-latest
|
||||
if: github.event_name == 'push' && github.event.ref == 'refs/heads/master' && contains(github.event.head_commit.message, '[TGSDeploy]')
|
||||
steps:
|
||||
|
||||
Reference in New Issue
Block a user