name: Nightly Build and Release on: push: branches: - main workflow_dispatch: jobs: build-releases: name: 'Build and Release Nightly' runs-on: Debian-x86 permissions: contents: write steps: # 1. This runs on the host runner environment (which has Node.js) - name: Checkout Code uses: actions/checkout@v4 # 2. This specific step spins up the .NET container dynamically just for the build - name: 'Execute .NET Publish Target' uses: docker://mcr.microsoft.com/dotnet/sdk:9.0 with: args: dotnet build aeqw89.tools.Publish/aeqw89.tools.Publish.csproj -t:PublishAll # 3. This runs on the host to seamlessly upload to the Gitea release - name: Update Nightly Release uses: softprops/action-gh-release@v2 with: tag_name: nightly name: "Nightly Development Build" body: | Automated rolling nightly build from the latest commit on `main`. **Commit:** ${{ github.sha }} prerelease: true files: | aeqw89.tools.Publish/dist/*.zip aeqw89.tools.Publish/dist/*.tar.gz env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}