From b13b79b11efbbb89fc880e74939d245a130c8182 Mon Sep 17 00:00:00 2001 From: Peter Feerick Date: Sun, 4 Aug 2024 16:13:43 +1000 Subject: [PATCH] chore(ci): auto create draft release --- .github/workflows/buildcdn.yml | 34 +++++++++++++++++++++++++--------- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/.github/workflows/buildcdn.yml b/.github/workflows/buildcdn.yml index 054cb597..67123c07 100644 --- a/.github/workflows/buildcdn.yml +++ b/.github/workflows/buildcdn.yml @@ -2,15 +2,17 @@ name: Build Releases on: push: - branches: - - master + branches: + - master paths-ignore: - - '**/README.md' + - "**/README.md" pull_request: - branches: - - master + branches: + - master paths-ignore: - - '**/README.md' + - "**/README.md" + tags: + - v* workflow_dispatch: @@ -27,10 +29,10 @@ jobs: uses: actions/upload-artifact@v4 with: name: sdcard-latest - path: | + path: | dist/* sdcard.json - + upload-release: if: github.event_name != 'pull_request' needs: build-artifact @@ -44,7 +46,7 @@ jobs: uses: crowbarmaster/GH-Automatic-Releases@latest with: repo_token: "${{ secrets.GITHUB_TOKEN }}" - automatic_release_tag: 'latest' + automatic_release_tag: "latest" prerelease: true title: "Latest" files: | @@ -54,3 +56,17 @@ jobs: dist/c480x272.zip dist/c480x320.zip sdcard.json + - name: Auto Create Draft Release + uses: crowbarmaster/GH-Automatic-Releases@latest + if: startsWith(github.event.ref, 'refs/tags/v') + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + draft: true + prerelease: false + files: | + dist/bw212x64.zip + dist/bw128x64.zip + dist/c320x480.zip + dist/c480x272.zip + dist/c480x320.zip + sdcard.json