From c9990eef6e8443ffb6c06c92165b3f1bf4825cd4 Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Thu, 18 May 2023 04:42:52 +0200 Subject: [PATCH] nightly release workflow --- .github/workflows/build.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a43483b..82dd515 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -46,6 +46,27 @@ jobs: path: ./artifact/* if-no-files-found: error + publish-nightly: + needs: build + if: (github.ref == 'refs/heads/master') && (!startsWith(github.ref, 'refs/tags/v')) + runs-on: ubuntu-latest + steps: + - uses: actions/download-artifact@v2 + with: + path: ./artifacts + - uses: ncipollo/release-action@v1 + with: + name: nightly + tag: nightly + allowUpdates: true + removeArtifacts: true + replacesArtifacts: true + prerelease: true + generateReleaseNotes: true + updateOnlyUnreleased: true + artifacts: ./artifacts/* + + publish-release: needs: build if: startsWith(github.ref, 'refs/tags/v') @@ -58,5 +79,6 @@ jobs: - uses: ncipollo/release-action@v1 with: tag: ${{ env.GITHUB_REF_SLUG_URL }} + generateReleaseNotes: true makeLatest: true artifacts: ./artifacts/*