From 1c9d85cabf7ee2051e56a7d2cf25800dc88b2d68 Mon Sep 17 00:00:00 2001 From: Lars Berger Date: Thu, 1 Feb 2024 18:47:09 +0800 Subject: [PATCH] fix --- .github/workflows/build.yaml | 18 ++++++++---------- .github/workflows/lint-check.yaml | 2 +- .github/workflows/release.yaml | 19 ++++++++++++++++++- 3 files changed, 27 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 2a68a056..168c668c 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -34,7 +34,7 @@ jobs: - uses: pnpm/action-setup@v2 with: - version: 8.14.1 + version: 8 - uses: actions/setup-node@v4 with: @@ -51,7 +51,7 @@ jobs: - uses: dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248 with: - toolchain: stable + toolchain: nightly target: ${{ matrix.target }} # - name: install dependencies # run: | @@ -70,21 +70,19 @@ jobs: sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf - run: pnpm i + - run: pnpm build --filter zebar --filter @zebar/client - - run: | - pnpm build --filter zebar --filter @zebar/client # - run: | # pnpm build --filter zebar --filter @zebar/client # pnpm build --filter @zebar/desktop -- -- --target ${{ matrix.target }} - uses: tauri-apps/tauri-action@v0 + id: tauri with: - projectPath: './packages/desktop' + projectPath: ./packages/desktop + args: --target ${{ matrix.target }} - uses: actions/upload-artifact@v3 with: name: bundle-${{ matrix.target }} - path: | - packages/desktop/target/release/bundle/**/*.AppImage - packages/desktop/target/release/bundle/**/*.dmg - packages/desktop/target/release/bundle/**/*.deb - packages/desktop/target/release/bundle/**/*.msi + if-no-files-found: error + path: "${{ join(fromJSON(steps.tauri.outputs.artifactPaths), '\n') }}" diff --git a/.github/workflows/lint-check.yaml b/.github/workflows/lint-check.yaml index 079b71a7..09b4fc2b 100644 --- a/.github/workflows/lint-check.yaml +++ b/.github/workflows/lint-check.yaml @@ -10,7 +10,7 @@ jobs: - uses: pnpm/action-setup@v2 with: - version: 8.14.1 + version: 8 - uses: actions/setup-node@v4 with: diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index bdf07b68..f23c05a9 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -20,11 +20,28 @@ jobs: with: fetch-depth: 0 + - uses: actions/download-artifact@v4 + with: + path: tmp + pattern: bundle-* + merge-multiple: true + - uses: glzr-io/actions/semantic-release@main with: - is-prerelease: false gh-publish: true gh-token: ${{ secrets.GITHUB_TOKEN }} gh-draft-release: false + gh-assets: | + [ + { + "path": "artifacts/win-x64/GlazeWM.exe", + "name": "GlazeWM_x64_${nextRelease.gitTag}" + }, + { + "path": "artifacts/win-x86/GlazeWM.exe", + "name": "GlazeWM_x86_${nextRelease.gitTag}" + } + ] npm-publish: true + npm-token: ${{ secrets.NPM_TOKEN }} npm-package-root: packages/client-api