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

43 lines
1.2 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:
- name: Checkout Code
uses: docker://alpine/git:latest
with:
args: clone https://github.com/${{ github.repository }}.git . && git checkout ${{ github.sha }}
# 2. Run the .NET compilation step
- 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 }}