Skip to content

Commit

Permalink
All we need is the body support
Browse files Browse the repository at this point in the history
One source can't write a body and the other can't replace the entire release. For now, we can chain them together.
  • Loading branch information
AbandonedCart authored and jumoog committed Mar 30, 2024
1 parent ded3c3d commit 3bb605d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,25 @@ 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:
tag_name: preview
name: intro-skipper-${{ env.GIT_HASH }}
body: |
checksum: ${{ env.CHECKSUM }}
files: |
intro-skipper-${{ env.GIT_HASH }}.zip
draft: false
prerelease: true
env:
Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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:
Expand Down

0 comments on commit 3bb605d

Please sign in to comment.