Files
aeqw89.tools.Publish/.gitea/workflows/build_releases.yaml
T
2026-06-05 00:33:58 +10:00

46 lines
1.3 KiB
YAML

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. Standard Checkout (Works now because Node is installed!)
- name: Checkout Code
uses: actions/checkout@v4
# 2. Setup the .NET 9.0 SDK natively on the runner
- name: Setup .NET 9.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.x'
# 3. Native run command (guaranteed to be in the correct directory)
- name: 'Execute .NET Publish Target'
run: dotnet build aeqw89.tools.Publish/aeqw89.tools.Publish.csproj -t:PublishAll
# 4. Upload to Gitea Release natively on the host
- 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 }}