From e5d0aaba50b93579ba01e1e46bf5d65625e83b5d Mon Sep 17 00:00:00 2001 From: ksqsf Date: Mon, 15 Apr 2024 15:29:08 +0800 Subject: [PATCH] build(ci): nightly release --- .github/workflows/release-ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/release-ci.yml b/.github/workflows/release-ci.yml index ebe9eaa25..f1ab1fecb 100644 --- a/.github/workflows/release-ci.yml +++ b/.github/workflows/release-ci.yml @@ -3,6 +3,10 @@ on: push: tags: - '*' + branches: + - master + workflow_dispatch: + jobs: build: runs-on: macos-14 @@ -30,8 +34,10 @@ jobs: echo 'changelog<> $GITHUB_OUTPUT ./action-changelog.sh >> $GITHUB_OUTPUT echo 'EOF' >> $GITHUB_OUTPUT + if: startsWith(github.ref, 'refs/tags/') - name: Create release + if: startsWith(github.ref, 'refs/tags/') uses: ncipollo/release-action@v1 with: artifacts: "package/*.zip" @@ -39,3 +45,14 @@ jobs: ${{ steps.release_log.outputs.changelog }} draft: true token: ${{ secrets.GITHUB_TOKEN }} + + - name: Create nightly release + if: github.ref == 'refs/heads/master' + uses: 'marvinpinto/action-automatic-releases@latest' + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + automatic_release_tag: latest + prerelease: true + title: "Nightly build" + files: | + package/*.zip