diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fe16c3f..11771af 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -59,7 +59,18 @@ jobs: checksum="$(awk '{print $1}' intro-skipper-${{ env.GIT_HASH }}.md5)" echo "CHECKSUM=$checksum" >> $GITHUB_ENV - - name: Publish Release + - name: Publish prerelease + uses: 8bitDream/action-github-releases@v1.0.0 + if: github.event_name != 'pull_request' + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + automatic_release_tag: preview + prerelease: true + title: intro-skipper-${{ env.GIT_HASH }} + files: | + intro-skipper-${{ env.GIT_HASH }}.zip + + - name: Publish prerelease notes uses: softprops/action-gh-release@v2.0.4 if: github.event_name != 'pull_request' with: @@ -67,8 +78,6 @@ jobs: name: intro-skipper-${{ env.GIT_HASH }} body: | checksum: ${{ env.CHECKSUM }} - files: | - intro-skipper-${{ env.GIT_HASH }}.zip draft: false prerelease: true env: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d630242..1e63164 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -57,7 +57,17 @@ jobs: timestamp="$(date +%FT%TZ)" echo "TIMESTAMP=$timestamp" >> $GITHUB_ENV - - name: Publish Release + - name: Publish release + uses: 8bitDream/action-github-releases@v1.0.0 + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + automatic_release_tag: v${{ github.event.inputs.version }} + prerelease: false + title: v${{ github.event.inputs.version }} + files: | + intro-skipper-v${{ github.event.inputs.version }}.zip + + - name: Publish release notes uses: softprops/action-gh-release@v2.0.4 with: tag_name: v${{ github.event.inputs.version }} @@ -66,8 +76,6 @@ jobs: sourceUrl: ${{ env.SOURCE_URL }} checksum: ${{ env.CHECKSUM }} timestamp: ${{ env.TIMESTAMP }} - files: | - intro-skipper-v${{ github.event.inputs.version }}.zip draft: false prerelease: false env: