From e42851c017c0052436bef9c4a920ade1a57a1255 Mon Sep 17 00:00:00 2001 From: Qijia Liu Date: Mon, 30 Oct 2023 20:43:42 -0700 Subject: [PATCH] release nightly (#753) --- .github/workflows/commit-ci.yml | 2 +- .github/workflows/release-ci.yml | 17 ++++++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/commit-ci.yml b/.github/workflows/commit-ci.yml index 95bfc6cf48..ca2fb22057 100644 --- a/.github/workflows/commit-ci.yml +++ b/.github/workflows/commit-ci.yml @@ -3,7 +3,7 @@ name: Commit CI on: push: branches: - - '*' + - '!master' tags: - '![0-9]+.*' pull_request: diff --git a/.github/workflows/release-ci.yml b/.github/workflows/release-ci.yml index 25486d7bf5..5ec226053a 100644 --- a/.github/workflows/release-ci.yml +++ b/.github/workflows/release-ci.yml @@ -2,8 +2,11 @@ name: Release CI on: push: + branches: + - master tags: - '[0-9]+.*' + workflow_dispatch: jobs: linux: @@ -27,7 +30,19 @@ jobs: - name: Download artifacts uses: actions/download-artifact@v3 - - name: Create GitHub release + - 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: | + artifact/* + + - name: Create Stable release + if: ${{ github.ref != 'refs/heads/master' }} uses: 'marvinpinto/action-automatic-releases@latest' with: repo_token: ${{ secrets.GITHUB_TOKEN }}