From 2e943882ec39b26a909efbd4d76ea2b9dff5d12f Mon Sep 17 00:00:00 2001 From: qwsdcvghyu89 <61093706+qwsdcvghyu89@users.noreply.github.com> Date: Fri, 5 Jun 2026 00:13:40 +1000 Subject: [PATCH] Updated container use semantics order to allow checkout to work --- .gitea/workflows/build_releases.yaml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/build_releases.yaml b/.gitea/workflows/build_releases.yaml index f185f68..5111453 100644 --- a/.gitea/workflows/build_releases.yaml +++ b/.gitea/workflows/build_releases.yaml @@ -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