Fix: Workflow Failure (P.1)

This commit is contained in:
Youwes09
2026-06-10 12:55:30 -05:00
parent 77b28e97a4
commit ddaca9d126
3 changed files with 24 additions and 9 deletions
+6 -2
View File
@@ -19,7 +19,9 @@ jobs:
- uses: pnpm/action-setup@v4 - uses: pnpm/action-setup@v4
with: { version: latest } with: { version: latest }
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
with: { node-version: 22, cache: pnpm } with:
node-version: 22
cache: pnpm
- run: pnpm install --frozen-lockfile - run: pnpm install --frozen-lockfile
- run: pnpm build:static - run: pnpm build:static
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
@@ -60,7 +62,9 @@ jobs:
- uses: pnpm/action-setup@v4 - uses: pnpm/action-setup@v4
with: { version: latest } with: { version: latest }
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
with: { node-version: 22, cache: pnpm } with:
node-version: 22
cache: pnpm
- run: pnpm install --frozen-lockfile - run: pnpm install --frozen-lockfile
- name: Download Suwayomi (Linux x64) - name: Download Suwayomi (Linux x64)
+8 -3
View File
@@ -19,7 +19,9 @@ jobs:
- uses: pnpm/action-setup@v4 - uses: pnpm/action-setup@v4
with: { version: latest } with: { version: latest }
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
with: { node-version: 22, cache: pnpm } with:
node-version: 22
cache: pnpm
- run: pnpm install --frozen-lockfile - run: pnpm install --frozen-lockfile
- run: pnpm build:static - run: pnpm build:static
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
@@ -43,7 +45,8 @@ jobs:
echo "SUWA_HASH_X64=$SUWA_HASH_MACOS_X64" >> $GITHUB_ENV echo "SUWA_HASH_X64=$SUWA_HASH_MACOS_X64" >> $GITHUB_ENV
- uses: dtolnay/rust-toolchain@stable - uses: dtolnay/rust-toolchain@stable
with: { targets: aarch64-apple-darwin,x86_64-apple-darwin } with:
targets: "aarch64-apple-darwin,x86_64-apple-darwin"
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
with: { workspaces: src-tauri } with: { workspaces: src-tauri }
@@ -51,7 +54,9 @@ jobs:
- uses: pnpm/action-setup@v4 - uses: pnpm/action-setup@v4
with: { version: latest } with: { version: latest }
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
with: { node-version: 22, cache: pnpm } with:
node-version: 22
cache: pnpm
- run: pnpm install --frozen-lockfile - run: pnpm install --frozen-lockfile
- name: Download Suwayomi binaries - name: Download Suwayomi binaries
+10 -4
View File
@@ -19,7 +19,9 @@ jobs:
- uses: pnpm/action-setup@v4 - uses: pnpm/action-setup@v4
with: { version: latest } with: { version: latest }
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
with: { node-version: 22, cache: pnpm } with:
node-version: 22
cache: pnpm
- run: pnpm install --frozen-lockfile - run: pnpm install --frozen-lockfile
- run: pnpm build:static - run: pnpm build:static
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
@@ -51,7 +53,9 @@ jobs:
- uses: pnpm/action-setup@v4 - uses: pnpm/action-setup@v4
with: { version: latest } with: { version: latest }
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
with: { node-version: 22, cache: pnpm } with:
node-version: 22
cache: pnpm
- run: pnpm install --frozen-lockfile - run: pnpm install --frozen-lockfile
- name: Download Suwayomi (Windows x64) - name: Download Suwayomi (Windows x64)
@@ -87,7 +91,8 @@ jobs:
- name: Delete existing draft release - name: Delete existing draft release
shell: bash shell: bash
env: { GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" } env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: | run: |
RELEASE_ID=$(curl -s -H "Authorization: Bearer $GITHUB_TOKEN" \ RELEASE_ID=$(curl -s -H "Authorization: Bearer $GITHUB_TOKEN" \
"https://api.github.com/repos/moku-project/Moku/releases" \ "https://api.github.com/repos/moku-project/Moku/releases" \
@@ -101,7 +106,8 @@ jobs:
- name: Build Tauri app + create draft release - name: Build Tauri app + create draft release
uses: tauri-apps/tauri-action@v0 uses: tauri-apps/tauri-action@v0
env: { GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" } env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
tagName: v${{ github.event.inputs.version }} tagName: v${{ github.event.inputs.version }}
releaseName: Moku v${{ github.event.inputs.version }} releaseName: Moku v${{ github.event.inputs.version }}