Skip to content

Commit

Permalink
move changelog generation to separate job
Browse files Browse the repository at this point in the history
  • Loading branch information
Raicuparta committed Oct 3, 2023
1 parent 7119b10 commit 11e9972
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,20 @@ on:
workflow_dispatch:

jobs:
generate-changelog:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Generate changelog
id: changelog
uses: heinrichreimer/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}

publish-tauri:
needs: generate-changelog
permissions:
contents: write
strategy:
Expand Down Expand Up @@ -48,12 +61,6 @@ jobs:
- name: Install frontend dependencies
run: pnpm install

- name: Generate changelog
id: changelog
uses: heinrichreimer/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}

- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -63,6 +70,6 @@ jobs:
tagName: v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
releaseName: "Rai Pal __VERSION__"
includeUpdaterJson: true
releaseBody: ${{ steps.changelog.outputs.changelog }}
releaseBody: ${{ needs.generate-changelog.outputs.changelog }}
releaseDraft: true
prerelease: false

0 comments on commit 11e9972

Please sign in to comment.