Skip to content

Commit

Permalink
[#3111] Don't replace prerelease and existing release body during builds
Browse files Browse the repository at this point in the history
  • Loading branch information
arbron committed Feb 23, 2024
1 parent 5a77ae2 commit f8d0713
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ jobs:
with:
file_path: "./system.json"

- name: Debug
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run:
echo "$GITHUB_CONTEXT"


# Set up our some variables for future use
# Adapted from https://github.community/t/how-to-get-just-the-tag-name/16241/7
Expand Down Expand Up @@ -100,16 +106,28 @@ jobs:
- run: zip ${{ env.ZIP_NAME }} -r fonts icons lang json packs templates tokens ui dnd5e.css dnd5e.mjs dnd5e-compiled.mjs.map LICENSE.txt README.md system.json template.json --exclude packs\/_source\/*


# Fetch the body from the release
- name: Fetch Release Body
id: release
uses: cardinalby/git-get-release-action@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
tag: ${{ env.TAG_NAME }}


# Create a release for this specific version
- name: Update Release with Files
id: create_version_release
uses: ncipollo/release-action@v1
with:
allowUpdates: true # Set this to false if you want to prevent updating existing releases
name: ${{ env.TAG_NAME }}
draft: false
prerelease: false
omitDraftDuringUpdate: true
omitPrereleaseDuringUpdate: true
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: './system.json, ./${{ env.ZIP_NAME }}'
tag: ${{ env.TAG_NAME }}
body: '**Installation:** To manually install this release, please use the following manifest URL: ${{ env.RELEASE_INSTALL_URL }}'
body: |
${{ steps.release.outputs.body }}
**Installation:** To manually install this release, please use the following manifest URL: ${{ env.RELEASE_INSTALL_URL }}

0 comments on commit f8d0713

Please sign in to comment.