Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v6.12.0 #2049

Merged
merged 157 commits into from
Dec 13, 2024
Merged

v6.12.0 #2049

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
157 commits
Select commit Hold shift + click to select a range
3593e3f
Bump HotChocolate.Types.Analyzers from 14.0.0-rc.3 to 14.0.0-rc.3.2
dependabot[bot] Oct 10, 2024
a89cbea
Bump HotChocolate.AspNetCore from 14.0.0-rc.3 to 14.0.0-rc.3.2
dependabot[bot] Oct 10, 2024
e3cb108
Bump HotChocolate.AspNetCore.Authorization
dependabot[bot] Oct 10, 2024
cacaee5
Bump HotChocolate.Types.Scalars from 14.0.0-rc.3 to 14.0.0-rc.3.2
dependabot[bot] Oct 10, 2024
61db84a
Bump HotChocolate.Data.EntityFramework from 14.0.0-rc.3 to 14.0.0-rc.3.2
dependabot[bot] Oct 10, 2024
60ac5fc
Merge branch 'pr-1962' into HotChocolateUpdate
Cyberboss Oct 10, 2024
fe22f12
Merge branch 'pr-1963' into HotChocolateUpdate
Cyberboss Oct 10, 2024
387db32
Merge branch 'pr-1964' into HotChocolateUpdate
Cyberboss Oct 10, 2024
968a7a4
Merge branch 'pr-1965' into HotChocolateUpdate
Cyberboss Oct 10, 2024
06d6501
Merge branch 'pr-1966' into HotChocolateUpdate
Cyberboss Oct 10, 2024
2f9e59e
Merge pull request #1967 from tgstation/HotChocolateUpdate
Cyberboss Oct 10, 2024
d1d41ba
Merge branch 'master' into dev
tgstation-server-ci[bot] Oct 11, 2024
a2d2c94
Merge branch 'master' into dev
tgstation-server-ci[bot] Oct 12, 2024
aae4773
Reduce periodic deployment lock states report log level to trace
Cyberboss Oct 13, 2024
8fa06fc
Merge branch 'master' into dev
tgstation-server-ci[bot] Oct 14, 2024
7dc196e
Merge branch 'dev' into RemoveLogSpam
Cyberboss Oct 14, 2024
bf0e839
Merge pull request #1971 from tgstation/RemoveLogSpam
Cyberboss Oct 15, 2024
5d3f581
Bump HotChocolate.Types.Scalars from 14.0.0-rc.3.2 to 14.0.0-rc.3.4
dependabot[bot] Oct 15, 2024
80ce327
Bump HotChocolate.Data.EntityFramework
dependabot[bot] Oct 15, 2024
1c7fe99
Bump HotChocolate.AspNetCore.Authorization
dependabot[bot] Oct 15, 2024
babfbb1
Bump HotChocolate.AspNetCore from 14.0.0-rc.3.2 to 14.0.0-rc.3.4
dependabot[bot] Oct 15, 2024
1dab74a
Bump HotChocolate.Types.Analyzers from 14.0.0-rc.3.2 to 14.0.0-rc.3.4
dependabot[bot] Oct 15, 2024
e98b925
Merge branch 'pr-1976' into HotChocolateRCUpdate
Cyberboss Oct 15, 2024
e10995c
Merge branch 'pr-1977' into HotChocolateRCUpdate
Cyberboss Oct 15, 2024
d686a74
Merge branch 'pr-1978' into HotChocolateRCUpdate
Cyberboss Oct 15, 2024
4357b8e
Merge branch 'pr-1979' into HotChocolateRCUpdate
Cyberboss Oct 15, 2024
77abe48
Group future HotChocolate updates
Cyberboss Oct 15, 2024
43e2eee
Merge branch 'master' into dev
tgstation-server-ci[bot] Oct 15, 2024
0b074dd
Merge pull request #1980 from tgstation/HotChocolateRCUpdate
Cyberboss Oct 15, 2024
b591e12
Bump Swashbuckle.AspNetCore.Newtonsoft from 6.8.1 to 6.9.0
dependabot[bot] Oct 15, 2024
0ff24b8
Bump Swashbuckle.AspNetCore from 6.8.1 to 6.9.0
dependabot[bot] Oct 15, 2024
a6c70e8
Merge branch 'pr-1982' into SwashbuckleUpdate
Cyberboss Oct 15, 2024
917e01d
Group future Swashbuckle updates
Cyberboss Oct 15, 2024
300b446
Merge pull request #1983 from tgstation/SwashbuckleUpdate
Cyberboss Oct 15, 2024
27b671f
Merge branch 'master' into dev
tgstation-server-ci[bot] Oct 16, 2024
8afe1ae
Partway port administrative actions to an `IAuthority`
Cyberboss Oct 20, 2024
3bbd114
Fix some bad authority HTTP response code handling
Cyberboss Oct 20, 2024
8cd94ed
Simpler class for string based scalars
Cyberboss Oct 20, 2024
770178c
Add `FileUploadTicket` scalar
Cyberboss Oct 20, 2024
b43cf98
Implement server restarts and updates via GraphQL
Cyberboss Oct 20, 2024
5b9603c
GraphQL version bump
Cyberboss Oct 20, 2024
7daea8d
Improve naming of admin mutations
Cyberboss Oct 20, 2024
3ead90c
Add FileUploadTicket scalar to client schema extensions
Cyberboss Oct 20, 2024
6d391a5
Fix issues with semver parsing server-side
Cyberboss Oct 20, 2024
6ad8009
Fix bad test mutation operation invocations
Cyberboss Oct 20, 2024
299c1e0
Merge pull request #1986 from tgstation/AdminAuthority [GQLDeploy]
Cyberboss Oct 21, 2024
79ef26a
Merge branch 'master' into dev
tgstation-server-ci[bot] Oct 21, 2024
cb5824e
Merge branch 'master' into dev
tgstation-server-ci[bot] Oct 22, 2024
0d1261e
Merge branch 'master' into dev
tgstation-server-ci[bot] Oct 24, 2024
3e92e1a
Make forceFresh argument in UpdateInformation optional
Cyberboss Oct 26, 2024
2673b7e
GraphQL version bump
Cyberboss Oct 26, 2024
2f6f53c
Merge pull request #1990 from tgstation/MinorGraphQLTweaks [GQLDeploy]
Cyberboss Oct 26, 2024
9cca0b0
Merge branch 'master' into dev
tgstation-server-ci[bot] Oct 28, 2024
5889c6e
Merge branch 'master' into dev
tgstation-server-ci[bot] Oct 29, 2024
efd68c2
Merge branch 'master' into dev
tgstation-server-ci[bot] Oct 29, 2024
af370fe
Flesh out graph structure some more
Cyberboss Nov 2, 2024
266e986
Setup OAuth Gateways
Cyberboss Nov 2, 2024
d783b21
Correct GraphQL doc comment
Cyberboss Nov 2, 2024
044021e
Fix OAuth Gateway missing rate limit response definition
Cyberboss Nov 2, 2024
ff0b1ce
Fix complexity warning in `LoginAuthority`
Cyberboss Nov 2, 2024
362913d
Fix null reference exceptions
Cyberboss Nov 2, 2024
d6a8e10
Use default
Cyberboss Nov 2, 2024
5326596
Merge pull request #1997 from tgstation/GitHubGateway [APIDeploy][GQL…
Cyberboss Nov 2, 2024
bfd9d2e
Triggering [RESTDeploy]
Cyberboss Nov 2, 2024
d98bc29
Fix an IDE0001 message VS was screaming about
Cyberboss Nov 3, 2024
be6960d
Move long-running delay task fix to AsyncDelayer
Cyberboss Nov 3, 2024
e81f6d2
Fix code first definition for OAuthConnection users in schema
Cyberboss Nov 3, 2024
a7ce0f5
Fix migration selection for downgrades below v6.7.0
Cyberboss Nov 3, 2024
fd22450
Fix bad state if admin GET request was canceled
Cyberboss Nov 3, 2024
15893ca
Instance auto start and stop crons
Cyberboss Nov 3, 2024
9f220cc
Fix typo in doc comment
Cyberboss Nov 3, 2024
90c5666
Merge pull request #1998 from tgstation/WrappingUp [RESTDeploy][Nuget…
Cyberboss Nov 3, 2024
310b147
Merge branch 'master' into dev
tgstation-server-ci[bot] Nov 4, 2024
8387eb5
Add self bootstrapping to host watchdog
Cyberboss Nov 4, 2024
2b243f6
Always store bootstrapped bins in home directory
Cyberboss Nov 5, 2024
0442224
Fix failed event script double setting a TaskCompletionSource
Cyberboss Nov 7, 2024
8bc9217
Fix update lockup with cancelled uploaded update packages
Cyberboss Nov 7, 2024
f0d8dd5
Fix issues with issue relocation during releases
Cyberboss Nov 7, 2024
11e9fdb
Rename this method appropriately
Cyberboss Nov 7, 2024
0e55e8d
Add support for global event scripts directories
Cyberboss Nov 7, 2024
2e93ddb
Rebump version
Cyberboss Nov 7, 2024
7f06abc
Fix global event scripts
Cyberboss Nov 8, 2024
159677a
Do not build commits tagged with `[TGSRelease]`
Cyberboss Nov 8, 2024
f90d06c
Setup release attestations
Cyberboss Nov 8, 2024
d40fcbf
Documentation comment cleanups
Cyberboss Nov 9, 2024
e6d64d8
Fix gcore on nix
Cyberboss Nov 9, 2024
05f48d6
Create basic nix flake
Cyberboss Nov 9, 2024
37fd094
Move byond patcher out of etc
Cyberboss Nov 9, 2024
af6c5f3
Attempt at adding extra PATH specifications
Cyberboss Nov 9, 2024
538e9cf
Remove unnecessary patchelf
Cyberboss Nov 9, 2024
bf5bfe6
Attempt to patch all .so's
Cyberboss Nov 9, 2024
bf30471
Fix patchelf call
Cyberboss Nov 9, 2024
aa62320
Just patch dynamic libs specifically
Cyberboss Nov 9, 2024
c37e983
Test
Cyberboss Nov 9, 2024
57bec44
Switch to proper versioned ServerConsole.zip and setup CD
Cyberboss Nov 9, 2024
4fe6b5a
Document new features
Cyberboss Nov 9, 2024
906d75e
Fix bad engine installs not getting cleaned up
Cyberboss Nov 9, 2024
d1ee2e0
Fix `build-msi` job bypassing CI start gate
Cyberboss Nov 9, 2024
2aa16e8
Merge pull request #2000 from tgstation/nixexperiment
Cyberboss Nov 9, 2024
08f0caf
Do not attempt to checkout a detached SHA on reclone
Cyberboss Oct 27, 2024
c500ec4
Merge pull request #1991 from tgstation/RepoRecloneFix
Cyberboss Nov 10, 2024
20e8060
Where are my dependaboot updates GitHub???
Cyberboss Nov 16, 2024
22fb6c2
.NET 9 manual packages update
Cyberboss Nov 16, 2024
a276123
Bump codecov-action
Cyberboss Nov 16, 2024
c8e4631
Stop using BetterWin32Errors which relies on deprecated packages
Cyberboss Nov 16, 2024
3aa011d
Update IRC fork
Cyberboss Nov 16, 2024
15f11c3
Update Tgstation.Server.Host.Service transitive dependencies
Cyberboss Nov 16, 2024
eb137ad
Remove the TGS3 migrator
Cyberboss Nov 16, 2024
7b159f7
Bump System.Text.Encodings.Web to address vulnerabilities
Cyberboss Nov 16, 2024
6fe5e70
Update vulnerable transitive dependency
Cyberboss Nov 17, 2024
ec7bc64
Undo the DRYness for CanonicalPackageName as it causes VS havoc
Cyberboss Nov 17, 2024
6325b5b
Fix TGS .ico only being 16-bit
Cyberboss Nov 17, 2024
e582ea9
Use old Icon generation on Linux
Cyberboss Nov 17, 2024
23b49ec
Log TGS .msi install details
Cyberboss Nov 17, 2024
29d9418
Fix license URL in installer
Cyberboss Nov 17, 2024
da197f8
Add nix files to .sln
Cyberboss Nov 17, 2024
d2b58ad
Handle IDE message
Cyberboss Nov 18, 2024
2a99c07
Fix subtle bug causing mixmatched files between host watchdog and hos…
Cyberboss Nov 18, 2024
8d50714
Merge pull request #2028 from tgstation/PackageUpdates2
Cyberboss Nov 18, 2024
673bd6d
Bump Microsoft.NET.Test.Sdk from 17.11.1 to 17.12.0
dependabot[bot] Nov 20, 2024
33f11bb
Merge pull request #2030 from tgstation/dependabot/nuget/Microsoft.NE…
tgstation-server-ci[bot] Nov 20, 2024
becb6ba
Bump the swashbuckle group with 3 updates
dependabot[bot] Nov 26, 2024
cd32053
Merge pull request #2031 from tgstation/dependabot/nuget/swashbuckle-…
Cyberboss Nov 26, 2024
6ea15a1
Switch to using SDK package to allow OD to build
Cyberboss Nov 13, 2024
c54e8b8
Fuckify this for a moment
Cyberboss Nov 13, 2024
e6c73d4
Add empty /etc event scripts directory
Cyberboss Nov 27, 2024
48ce38a
Fix build inputs
Cyberboss Nov 27, 2024
87c0708
Add bash as a package dependency
Cyberboss Nov 27, 2024
526f720
Handle case of OD in BYOND patchelf
Cyberboss Nov 27, 2024
bd6d8b0
Invoke OD with `dotnet` executable for nix friendliness
Cyberboss Nov 27, 2024
a64c0c2
Revert "Fuckify this for a moment"
Cyberboss Nov 27, 2024
a148596
Bump Elastic.CommonSchema.Serilog from 8.12.2 to 8.12.3
dependabot[bot] Nov 27, 2024
79cd074
Merge pull request #2033 from tgstation/dependabot/nuget/Elastic.Comm…
tgstation-server-ci[bot] Nov 27, 2024
e7447d1
Satisfy an IDE message
Cyberboss Nov 28, 2024
2869eaf
Fix server/compiler paths being incorrect for custom OD installations
Cyberboss Nov 28, 2024
9bb0419
Fix engine process identification in OD test
Cyberboss Nov 30, 2024
179572f
Merge pull request #2032 from tgstation/FixDotnetOD
Cyberboss Nov 30, 2024
150cf69
Bump YamlDotNet from 16.2.0 to 16.2.1
dependabot[bot] Dec 2, 2024
c7eb864
Merge pull request #2034 from tgstation/dependabot/nuget/YamlDotNet-1…
tgstation-server-ci[bot] Dec 2, 2024
47eeba0
Bump LibGit2Sharp from 0.30.0 to 0.31.0
dependabot[bot] Dec 3, 2024
025260d
Merge pull request #2035 from tgstation/dependabot/nuget/LibGit2Sharp…
tgstation-server-ci[bot] Dec 4, 2024
5e48e94
Add StrawberryShake.Server to hotchocolate group
Cyberboss Dec 5, 2024
eb31878
Group MSTest updates
Cyberboss Dec 5, 2024
ad379d0
Try locking down docker publish action
Cyberboss Dec 5, 2024
d102017
Update winget-pkgs PR template
Cyberboss Dec 5, 2024
a01f4b3
Merge pull request #2042 from tgstation/FixesNShit
Cyberboss Dec 5, 2024
bd34c69
Bump Microsoft.IdentityModel.JsonWebTokens and System.Text.Encodings.Web
dependabot[bot] Dec 6, 2024
9db5524
Merge pull request #2041 from tgstation/dependabot/nuget/multi-9c9a80…
tgstation-server-ci[bot] Dec 6, 2024
11a0001
Bump the mstest group with 2 updates
dependabot[bot] Dec 6, 2024
f8c9032
Update HotChocolate to 14.2
Cyberboss Dec 6, 2024
f2980d0
Merge pull request #2044 from tgstation/dependabot/nuget/mstest-237af…
tgstation-server-ci[bot] Dec 6, 2024
e8402a7
Merge pull request #2045 from tgstation/CorrectHotChocolateUpdate
Cyberboss Dec 6, 2024
ae2ff5a
Bump Serilog.Extensions.Logging from 8.0.0 to 9.0.0
dependabot[bot] Dec 9, 2024
0f87b11
Merge pull request #2046 from tgstation/dependabot/nuget/Serilog.Exte…
tgstation-server-ci[bot] Dec 9, 2024
2c856a4
Bump the swashbuckle group with 3 updates
dependabot[bot] Dec 11, 2024
3df908b
Merge pull request #2048 from tgstation/dependabot/nuget/swashbuckle-…
Cyberboss Dec 12, 2024
416a127
Update webpanel
Cyberboss Dec 13, 2024
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
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,22 @@ updates:
interval: daily
labels:
- Dependencies
groups:
HotChocolate:
applies-to: version-updates
patterns:
- "HotChocolate.*"
- "StrawberryShake.Server"
Swashbuckle:
applies-to: version-updates
patterns:
- "Swashbuckle.*"
MSTest:
applies-to: version-updates
patterns:
- "MSTest.*"
open-pull-requests-limit: 100

- package-ecosystem: github-actions
directory: /
target-branch: master
Expand Down
159 changes: 155 additions & 4 deletions .github/workflows/ci-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,17 @@ concurrency:
cancel-in-progress: true

jobs:
start-gate:
name: CI Start Gate
runs-on: ubuntu-latest
if: (!contains(github.event.head_commit.message, '[TGSRelease]'))
steps:
- name: GitHub Requires at Least One Step for a Job
run: exit 0

build-releasenotes:
name: Build ReleaseNotes for Other Jobs
needs: start-gate
runs-on: ubuntu-latest
steps:
- name: Install Native Dependencies
Expand Down Expand Up @@ -83,6 +92,7 @@ jobs:

code-scanning:
name: Run CodeQL
needs: start-gate
runs-on: ubuntu-latest
permissions:
security-events: write
Expand Down Expand Up @@ -134,6 +144,7 @@ jobs:

dmapi-build:
name: Build DMAPI
needs: start-gate
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -222,6 +233,7 @@ jobs:

opendream-build:
name: Build DMAPI (OpenDream)
needs: start-gate
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -278,6 +290,7 @@ jobs:
efcore-version-match:
name: Check Nuget Versions Match Tools
runs-on: ubuntu-latest
needs: start-gate
steps:
- name: Checkout (Branch)
uses: actions/checkout@v4
Expand Down Expand Up @@ -412,6 +425,7 @@ jobs:
docker-build:
name: Build Docker Image
runs-on: ubuntu-latest
needs: start-gate
env:
TGS_TELEMETRY_KEY_FILE: tgs_telemetry_key.txt
steps:
Expand All @@ -438,6 +452,7 @@ jobs:

linux-unit-tests:
name: Linux Tests
needs: start-gate
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -510,6 +525,7 @@ jobs:

windows-unit-tests:
name: Windows Tests
needs: start-gate
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -1260,7 +1276,7 @@ jobs:
path: ./code_coverage/integration_tests/windows_integration_tests_release_system_sqlite

- name: Upload Coverage to CodeCov
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
directory: ./code_coverage
fail_ci_if_error: true
Expand Down Expand Up @@ -1428,6 +1444,7 @@ jobs:
build-msi:
name: Build Windows Installer .exe
runs-on: windows-latest
needs: start-gate
env:
TGS_TELEMETRY_KEY_FILE: C:/tgs_telemetry_key.txt
steps:
Expand Down Expand Up @@ -1521,6 +1538,10 @@ jobs:
if (Test-Path -Path $log -PathType Leaf) {
Get-Content $log
}
$potentialMsiLog = [System.IO.Path]::GetFullPath("install_000_tgstation_server.msi.log")
if (Test-Path -Path $potentialMsiLog -PathType Leaf) {
Get-Content $potentialMsiLog
}
$installCode = $procMain.ExitCode
if($installCode -ne 0) {
Write-Host "ERROR INSTALLER EXIT CODE $installCode"
Expand Down Expand Up @@ -1715,6 +1736,12 @@ jobs:
body_path: release_notes.md
commitish: ${{ github.event.head_commit.id }}

- name: Generate Artifact Attestation
uses: actions/attest-build-provenance@v1
with:
subject-path: ./swagger/tgs_api.json
github-token: ${{ steps.app-token-generation.outputs.token }}

- name: Upload OpenApi Spec
uses: actions/upload-release-asset@v1
env:
Expand Down Expand Up @@ -1795,6 +1822,12 @@ jobs:
commitish: ${{ github.event.head_commit.id }}
prerelease: ${{ env.TGS_GRAPHQL_PRERELEASE }}

- name: Generate Artifact Attestation
uses: actions/attest-build-provenance@v1
with:
subject-path: ./schema/tgs_api.graphql
github-token: ${{ steps.app-token-generation.outputs.token }}

- name: Upload GraphQL Schema
uses: actions/upload-release-asset@v1
env:
Expand Down Expand Up @@ -1867,6 +1900,12 @@ jobs:
body_path: release_notes.md
commitish: ${{ github.event.head_commit.id }}

- name: Generate Artifact Attestation
uses: actions/attest-build-provenance@v1
with:
subject-path: ./DMAPI.zip
github-token: ${{ steps.app-token-generation.outputs.token }}

- name: Upload DMAPI Artifact
uses: actions/upload-release-asset@v1
env:
Expand Down Expand Up @@ -2132,7 +2171,19 @@ jobs:
body_path: release_notes.md
commitish: ${{ github.event.head_commit.id }}

- name: Upload Server Console Artifact
- name: Generate Server Console Artifact Attestation
uses: actions/attest-build-provenance@v1
with:
subject-path: ./ServerConsole.zip
github-token: ${{ steps.app-token-generation.outputs.token }}

- name: Upload Server Console Zip Artifact to Action
uses: actions/upload-artifact@v4
with:
name: server-console-release
path: ./ServerConsole.zip

- name: Upload Server Console Artifact to Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ steps.app-token-generation.outputs.token }}
Expand All @@ -2142,6 +2193,12 @@ jobs:
asset_name: ServerConsole.zip
asset_content_type: application/zip

- name: Generate Server Service Artifact Attestation
uses: actions/attest-build-provenance@v1
with:
subject-path: ./ServerService.zip
github-token: ${{ steps.app-token-generation.outputs.token }}

- name: Upload Server Service Artifact
uses: actions/upload-release-asset@v1
env:
Expand All @@ -2152,6 +2209,12 @@ jobs:
asset_name: ServerService.zip
asset_content_type: application/zip

- name: Generate DMAPI Artifact Attestation
uses: actions/attest-build-provenance@v1
with:
subject-path: ./DMAPI.zip
github-token: ${{ steps.app-token-generation.outputs.token }}

- name: Upload DMAPI Artifact
uses: actions/upload-release-asset@v1
env:
Expand All @@ -2162,6 +2225,12 @@ jobs:
asset_name: DMAPI.zip
asset_content_type: application/zip

- name: Generate REST API Artifact Attestation
uses: actions/attest-build-provenance@v1
with:
subject-path: ./swagger/tgs_api.json
github-token: ${{ steps.app-token-generation.outputs.token }}

- name: Upload REST API Artifact
uses: actions/upload-release-asset@v1
env:
Expand All @@ -2172,6 +2241,12 @@ jobs:
asset_name: swagger.json
asset_content_type: application/json

- name: Generate GraphQL API Artifact Attestation
uses: actions/attest-build-provenance@v1
with:
subject-path: ./schema/tgs-api.graphql
github-token: ${{ steps.app-token-generation.outputs.token }}

- name: Upload GraphQL API Artifact
uses: actions/upload-release-asset@v1
env:
Expand All @@ -2182,6 +2257,12 @@ jobs:
asset_name: tgs-api.graphql
asset_content_type: text/plain

- name: Generate Server Update Package Artifact Attestation
uses: actions/attest-build-provenance@v1
with:
subject-path: ./ServerUpdatePackage.zip
github-token: ${{ steps.app-token-generation.outputs.token }}

- name: Upload Server Update Package Artifact
uses: actions/upload-release-asset@v1
env:
Expand All @@ -2192,7 +2273,13 @@ jobs:
asset_name: ServerUpdatePackage.zip
asset_content_type: application/zip

- name: Upload Debian Pacakaging Artifact
- name: Generate Debian Packaging Artifact Attestation
uses: actions/attest-build-provenance@v1
with:
subject-path: ./packaging-debian/tgstation-server-v${{ env.TGS_VERSION }}.debian.packaging.tar.xz
github-token: ${{ steps.app-token-generation.outputs.token }}

- name: Upload Debian Packaging Artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ steps.app-token-generation.outputs.token }}
Expand All @@ -2202,6 +2289,12 @@ jobs:
asset_name: tgstation-server-v${{ env.TGS_VERSION }}.debian.packaging.tar.xz
asset_content_type: application/x-tar

- name: Generate MariaDB .msi Attestation
uses: actions/attest-build-provenance@v1
with:
subject-path: ./build/package/winget/Tgstation.Server.Host.Service.Wix.Bundle/bin/Release/mariadb.msi
github-token: ${{ steps.app-token-generation.outputs.token }}

- name: Upload MariaDB .msi
uses: actions/upload-release-asset@v1
env:
Expand All @@ -2212,6 +2305,12 @@ jobs:
asset_name: mariadb-${{ env.MARIADB_VERSION }}-winx64.msi
asset_content_type: application/octet-stream

- name: Generate Installer .exe Attestation
uses: actions/attest-build-provenance@v1
with:
subject-path: ./build/package/winget/tgstation-server-installer.exe
github-token: ${{ steps.app-token-generation.outputs.token }}

- name: Upload Installer .exe
uses: actions/upload-release-asset@v1
env:
Expand All @@ -2222,6 +2321,58 @@ jobs:
asset_name: tgstation-server-installer.exe
asset_content_type: application/octet-stream

update-nix:
name: Update Nix SHA
needs: deploy-tgs
runs-on: ubuntu-latest
if: (!(cancelled() || failure())) && needs.deploy-tgs.result == 'success'
steps:
- name: Install Native Packages # Name checked in rerunFlakyTests.js
run: |
sudo apt-get update
sudo apt-get install -y xmlstarlet

- name: Setup Nix
uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-unstable

- name: Checkout
uses: actions/checkout@v4

- name: Parse TGS version
run: echo "TGS_VERSION=$(xmlstarlet sel -N X="http://schemas.microsoft.com/developer/msbuild/2003" --template --value-of /X:Project/X:PropertyGroup/X:TgsCoreVersion build/Version.props)" >> $GITHUB_ENV

- name: Retrieve ServerConsole.zip Artifact
uses: actions/download-artifact@v4
with:
name: server-console-release
path: server-console-release

- name: Regenerate Nix Hash
run: |
nix hash path ./server-console-release > build/package/nix/ServerConsole.sha256
cat build/package/nix/ServerConsole.sha256

- name: Commit
run: |
git config --global push.default simple
git config user.name "tgstation-server-ci[bot]"
git config user.email "161980869+tgstation-server-ci[bot]@users.noreply.github.com"
git add build/package/nix/ServerConsole.sha256
git commit -m "Update nix SHA256 for [TGSRelease] v${{ env.TGS_VERSION }}"

- name: Re-tag
run: |
git tag -d tgstation-server-v${{ env.TGS_VERSION }}
git tag tgstation-server-v${{ env.TGS_VERSION }}

- name: Push Commit
run: git push

- name: Force Push Tags
run: git push -f --tags

changelog-regen:
name: Regenerate Changelog
runs-on: ubuntu-latest
Expand Down Expand Up @@ -2285,7 +2436,7 @@ jobs:
run: echo "TGS_VERSION=$(xmlstarlet sel -N X="http://schemas.microsoft.com/developer/msbuild/2003" --template --value-of /X:Project/X:PropertyGroup/X:TgsCoreVersion build/Version.props)" >> $GITHUB_ENV

- name: Docker Build and Push
uses: elgohr/Publish-Docker-Github-Action@977fe38375c65e8e3b01d226d72c1f7d488e45dc # v5
uses: elgohr/Publish-Docker-Github-Action@eb53b3ec07136a6ebaed78d8135806da64f7c7e2 # v5
with:
name: tgstation/server
username: ${{ secrets.DOCKER_USERNAME }}
Expand Down
Loading
Loading