Skip to content

armgit / Pake

Public Imported from GitHub
0

Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.

update release

Tw933d141108adcf
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index ff6e7eaf..64120e68 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -39,10 +39,34 @@ jobs:
echo "apps_name=$(jq -c '[.[] | .name]' default_app_list.json)" >> $GITHUB_OUTPUT
echo "apps_config=$(jq -c '.' default_app_list.json)" >> $GITHUB_OUTPUT
- build-popular-apps:
- name: ${{ matrix.config.title }}
+ build-cli:
+ name: Build CLI
needs: release-apps
if: needs.release-apps.result == 'success'
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+
+ - name: Setup Node.js Environment
+ uses: ./.github/actions/setup-env
+ with:
+ mode: 'node'
+
+ - name: Build CLI
+ run: pnpm run cli:build
+
+ - name: Upload CLI Artifact
+ uses: actions/upload-artifact@v4
+ with:
+ name: pake-cli-dist
+ path: dist/
+ retention-days: 1
+
+ build-popular-apps:
+ name: ${{ matrix.config.title }}
+ needs: [release-apps, build-cli]
+ if: needs.release-apps.result == 'success' && needs.build-cli.result == 'success'
strategy:
matrix:
config: ${{ fromJSON(needs.release-apps.outputs.apps_config) }}
diff --git a/.github/workflows/single-app.yaml b/.github/workflows/single-app.yaml
index 3cfd64a6..b4e3fbf6 100644
--- a/.github/workflows/single-app.yaml
+++ b/.github/workflows/single-app.yaml
@@ -4,10 +4,6 @@ env:
NODE_VERSION: "22"
PNPM_VERSION: "10.26.2"
-concurrency:
- group: build-app-${{ github.workflow }}-${{ github.ref }}-${{ inputs.name }}
- cancel-in-progress: true
-
on:
workflow_dispatch:
inputs:
@@ -60,6 +56,7 @@ on:
jobs:
build-cli:
name: Build CLI
+ if: github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
@@ -83,6 +80,7 @@ jobs:
build:
name: ${{ inputs.title }} (${{ matrix.build }})
needs: build-cli
+ if: always() && (needs.build-cli.result == 'success' || needs.build-cli.result == 'skipped')
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
@@ -249,7 +247,7 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
- name: ${{ inputs.title }}-${{ matrix.build }}-${{ github.run_attempt }}
+ name: ${{ inputs.title }}-${{ matrix.build }}
path: output/*/*.*
retention-days: 3