Updated container use semantics order to allow checkout to work

This commit is contained in:
qwsdcvghyu89
2026-06-05 00:13:40 +10:00
parent e11c689602
commit 2e943882ec
+9 -10
View File
@@ -3,8 +3,7 @@ name: Nightly Build and Release
on:
push:
branches:
- master
- main
workflow_dispatch:
jobs:
@@ -12,19 +11,20 @@ jobs:
name: 'Build and Release Nightly'
runs-on: Debian-x86
permissions:
contents: write # Ensures the GITHUB_TOKEN has permission to create/update releases
container:
image: mcr.microsoft.com/dotnet/sdk:9.0
contents: write
steps:
# 1. This runs on the host runner environment (which has Node.js)
- name: Checkout Code
uses: actions/checkout@v4
# 1. Run your custom MSBuild target
# 2. This specific step spins up the .NET container dynamically just for the build
- name: 'Execute .NET Publish Target'
run: dotnet build aeqw89.tools.Publish/aeqw89.tools.Publish.csproj -t:PublishAll
uses: docker://mcr.microsoft.com/dotnet/sdk:9.0
with:
args: dotnet build aeqw89.tools.Publish/aeqw89.tools.Publish.csproj -t:PublishAll
# 2. Upload all generated archives to the 'nightly' release
# 3. This runs on the host to seamlessly upload to the Gitea release
- name: Update Nightly Release
uses: softprops/action-gh-release@v2
with:
@@ -35,7 +35,6 @@ jobs:
**Commit:** ${{ github.sha }}
prerelease: true
# This glob pattern grabs every zip and tar.gz inside your dist folder
files: |
aeqw89.tools.Publish/dist/*.zip
aeqw89.tools.Publish/dist/*.tar.gz