Skip to content

Commit

Permalink
ci(action): try to merge changelog and assets
Browse files Browse the repository at this point in the history
  • Loading branch information
litingyes committed Dec 8, 2024
1 parent 7853341 commit 53fedc8
Showing 1 changed file with 13 additions and 16 deletions.
29 changes: 13 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4
with:
version: 9.14.4
Expand All @@ -42,25 +44,20 @@ jobs:
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
- run: pnpm install
- name: Generate CHANGELOG
id: generate-changelog
run: |
tags=$(git tag --sort=-creatordate | head -n 2)
to=$(echo "$tags" | sed -n 1p)
from=$(echo "$tags" | sed -n 2p)
changelog=$(npx changelogen@latest --from="$from" --to="$to" --no-output)
echo "CHANGELOG=$changelog" >> $GITHUB_ENV
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: app-v__VERSION__
releaseName: App v__VERSION__
releaseBody: See the assets to download this version and install.
tagName: v__VERSION__
releaseName: v__VERSION__
releaseBody: ${{ env.CHANGELOG }}
prerelease: false
args: ${{ matrix.args }}
changelog:
needs: publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: lts/*
- run: npx changelogithub
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 53fedc8

Please sign in to comment.