Files
aeqw89.tools.Publish/.gitea/workflows/build_releases.yaml
T
qwsdcvghyu89 320fee57b2
Nightly Build and Release / Build and Release Nightly (push) Canceled after 0s
Updated runs-on to match upper and lowercase
2026-06-05 00:08:42 +10:00

43 lines
1.3 KiB
YAML

name: Nightly Build and Release
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build-releases:
name: 'Build and Release Nightly'
runs-on: ['Debian-x86', 'debian-x86']
permissions:
contents: write # Ensures the GITHUB_TOKEN has permission to create/update releases
container:
image: mcr.microsoft.com/dotnet/sdk:9.0
steps:
- name: Checkout Code
uses: actions/checkout@v4
# 1. Run your custom MSBuild target
- name: 'Execute .NET Publish Target'
run: dotnet build aeqw89.tools.Publish/aeqw89.tools.Publish.csproj -t:PublishAll
# 2. Upload all generated archives to the 'nightly' 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
# 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
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}