Added workflow for nightly releases

This commit is contained in:
qwsdcvghyu89
2026-06-04 23:51:46 +10:00
parent 08a221202f
commit 61a4902ac4
+41
View File
@@ -0,0 +1,41 @@
name: Nightly Build and Release
on:
push:
branches:
- main
jobs:
build-releases:
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
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 }}