Skip to content

Commit

Permalink
ci: fix release action (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-berger authored Feb 11, 2024
1 parent 126cb92 commit 0eb8560
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 46 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
done
shell: bash

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: bundle-${{ matrix.tauri-target }}
if-no-files-found: error
Expand Down
86 changes: 41 additions & 45 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,53 +27,49 @@ jobs:
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: bundle-i686-pc-windows-msvc
pattern: bundle-**
path: tmp

- run: ls -al
- 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

0 comments on commit 0eb8560

Please sign in to comment.