From 61a4902ac421da7475dc1528d72336bf06529bfe Mon Sep 17 00:00:00 2001 From: qwsdcvghyu89 <61093706+qwsdcvghyu89@users.noreply.github.com> Date: Thu, 4 Jun 2026 23:51:46 +1000 Subject: [PATCH] Added workflow for nightly releases --- .gitea/workflows/build_releases.yaml | 41 ++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .gitea/workflows/build_releases.yaml diff --git a/.gitea/workflows/build_releases.yaml b/.gitea/workflows/build_releases.yaml new file mode 100644 index 0000000..b14c1ee --- /dev/null +++ b/.gitea/workflows/build_releases.yaml @@ -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 }} \ No newline at end of file