Skip to content

Commit

Permalink
fix: pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
kasvith committed Jun 13, 2024
1 parent 232a285 commit 2795d2b
Showing 1 changed file with 23 additions and 15 deletions.
38 changes: 23 additions & 15 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,28 @@ concurrency:
cancel-in-progress: true

jobs:
changelog:
runs-on: ubuntu-latest
outputs:
changelog: ${{ steps.changelog.outputs.changelog }}
steps:
- name: Check out Git repository
uses: actions/checkout@v4

- name: Update CHANGELOG
id: changelog
uses: requarks/changelog-action@v1
with:
token: ${{ github.token }}
tag: ${{ github.ref_name }}

- name: Commit CHANGELOG.md
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: main
commit_message: 'docs: update CHANGELOG.md for ${{ github.ref_name }} [skip ci]'
file_pattern: CHANGELOG.md

release:
runs-on: ${{ matrix.os }}

Expand Down Expand Up @@ -52,13 +74,6 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Update CHANGELOG
id: changelog
uses: requarks/changelog-action@v1
with:
token: ${{ github.token }}
tag: ${{ github.ref_name }}

- name: build-linux
if: matrix.os == 'ubuntu-latest'
run: sudo snap install snapcraft --classic && pnpm build:linux
Expand All @@ -74,7 +89,7 @@ jobs:
- name: release
uses: softprops/action-gh-release@v2
with:
body: ${{ steps.changelog.outputs.changes }}
body: ${{ needs.changelog.outputs.changelog }}
draft: true
files: |
dist/*.exe
Expand All @@ -89,10 +104,3 @@ jobs:
dist/*.blockmap
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

- name: Commit CHANGELOG.md
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: main
commit_message: 'docs: update CHANGELOG.md for ${{ github.ref_name }} [skip ci]'
file_pattern: CHANGELOG.md

0 comments on commit 2795d2b

Please sign in to comment.