From c4683c5e7e43ede87119bf28bee71f978c401015 Mon Sep 17 00:00:00 2001 From: Lars Berger Date: Sun, 11 Feb 2024 03:38:16 +0800 Subject: [PATCH] uncomment release steps --- .github/workflows/release.yaml | 83 +++++++++++++++++----------------- 1 file changed, 42 insertions(+), 41 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 17651e0a..6badbe5f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -30,52 +30,53 @@ jobs: - name: Download build artifacts uses: actions/download-artifact@v4 with: + name: bundle-** path: tmp - - run: ls -al + # TODO: Remove debug logs - run: cd tmp - run: ls -al - # - uses: pnpm/action-setup@v2 - # with: - # version: 8 + - uses: pnpm/action-setup@v2 + with: + version: 8 - # - uses: actions/setup-node@v4 - # with: - # node-version: 20 - # cache: pnpm + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: pnpm - # - run: pnpm i + - run: pnpm i - # - uses: glzr-io/actions/semantic-release@main - # with: - # gh-publish: true - # gh-token: ${{ secrets.GITHUB_TOKEN }} - # gh-draft-release: false - # gh-assets: | - # [ - # { - # "path": "tmp/bundle-x86_64-pc-windows-msvc/tauri.msi", - # "name": "Zebar_x64_${nextRelease.gitTag}.msi" - # }, - # { - # "path": "tmp/bundle-i686-pc-windows-msvc/tauri.msi", - # "name": "Zebar_x86_${nextRelease.gitTag}.msi" - # }, - # { - # "path": "tmp/bundle-universal-apple-darwin/tauri.dmg", - # "name": "Zebar_${nextRelease.gitTag}.dmg" - # }, - # { - # "path": "tmp/bundle-x86_64-unknown-linux-gnu/tauri.deb", - # "name": "Zebar_x64_${nextRelease.gitTag}.deb" - # }, - # { - # "path": "tmp/bundle-x86_64-unknown-linux-gnu/tauri.AppImage", - # "name": "Zebar_x64_${nextRelease.gitTag}.AppImage" - # } - # ] - # npm-publish: true - # npm-token: ${{ secrets.NPM_TOKEN }} - # npm-package-root: packages/client-api - # npm-package-manager: pnpm + - uses: glzr-io/actions/semantic-release@main + with: + gh-publish: true + gh-token: ${{ secrets.GITHUB_TOKEN }} + gh-draft-release: false + gh-assets: | + [ + { + "path": "tmp/bundle-x86_64-pc-windows-msvc/tauri.msi", + "name": "Zebar_x64_${nextRelease.gitTag}.msi" + }, + { + "path": "tmp/bundle-i686-pc-windows-msvc/tauri.msi", + "name": "Zebar_x86_${nextRelease.gitTag}.msi" + }, + { + "path": "tmp/bundle-universal-apple-darwin/tauri.dmg", + "name": "Zebar_${nextRelease.gitTag}.dmg" + }, + { + "path": "tmp/bundle-x86_64-unknown-linux-gnu/tauri.deb", + "name": "Zebar_x64_${nextRelease.gitTag}.deb" + }, + { + "path": "tmp/bundle-x86_64-unknown-linux-gnu/tauri.AppImage", + "name": "Zebar_x64_${nextRelease.gitTag}.AppImage" + } + ] + npm-publish: true + npm-token: ${{ secrets.NPM_TOKEN }} + npm-package-root: packages/client-api + npm-package-manager: pnpm