Skip to content

Commit

Permalink
ci: Fix changelog generation
Browse files Browse the repository at this point in the history
  • Loading branch information
psyGamer committed Oct 27, 2024
1 parent b2adbfd commit 525588f
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Python
uses: actions/[email protected]
with:
Expand Down Expand Up @@ -59,8 +62,8 @@ jobs:
release:
runs-on: ubuntu-latest
needs:
- build-studio
- generate-changelog
- build-studio
- generate-changelog

steps:
- name: Checkout
Expand Down Expand Up @@ -112,6 +115,11 @@ jobs:
uses: actions/download-artifact@v4
with:
pattern: changelog-*
- name: Clean-up changelog artifacts
uses: geekyeggo/delete-artifact@v5
with:
name: changelog-*
failOnError: false

- name: Setup Python environment
run: |
Expand All @@ -122,12 +130,12 @@ jobs:
- name: Prepare releases
run: |
# Version GameBanana .zip without v prefix
RELEASE_FILE="CelesteTAS_$(head -n 1 version_info.txt | cut -c 2-).zip"
RELEASE_FILE="CelesteTAS_$(head -n 1 changelog-version/version_info.txt | cut -c 2-).zip"
cp CelesteTAS.zip $RELEASE_FILE
echo "RELEASE_FILE=$RELEASE_FILE" >> $GITHUB_ENV
# Setup GitHub release title
RELEASE_TITLE="$(sed -n "1p" version_info.txt) (Studio $(sed -n "2p" version_info.txt))"
RELEASE_TITLE="$(sed -n "1p" changelog-version/version_info.txt) (Studio $(sed -n "2p" changelog-version/version_info.txt))"
echo "RELEASE_TITLE=$RELEASE_TITLE" >> $GITHUB_ENV
- name: Upload GameBanana release
Expand Down

0 comments on commit 525588f

Please sign in to comment.