From 75c9bbae776619221aa50336be4294def0d81a9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=98D=3ALR?= <227069562+mod-lr@users.noreply.github.com> Date: Wed, 1 Oct 2025 12:52:36 +1000 Subject: [PATCH] chore(release): support prerelease tags and auto-mark prereleases - Triggers on v*.*.* and v*.*.*-* (beta/rc) - Auto-marks prerelease when tag contains a hyphen --- .github/workflows/release.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b7315a6..2e4e3c0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,7 +3,8 @@ on: workflow_dispatch: push: tags: - - 'v*.*.*' + - 'v*.*.*' # finals like v1.2.3 + - 'v*.*.*-*' # pre-releases like v1.2.3-beta, v1.2.3-rc1 permissions: contents: write @@ -13,11 +14,16 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - name: Build artifacts (placeholder) run: echo "Build your add-on zips here" + - name: Create GitHub Release uses: softprops/action-gh-release@v2 with: generate_release_notes: true + prerelease: ${{ contains(github.ref, '-') }} + # files: | + # dist/*.zip env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}