ci: separate build/publish (don't run build on all platforms)

ci: don't try to build AppX in CI/CD context
This commit is contained in:
izzy
2025-10-08 21:01:06 +01:00
parent 864571df56
commit 25506172f2
4 changed files with 150 additions and 110 deletions
+4 -21
View File
@@ -1,21 +1,12 @@
on:
push:
tags:
- "*"
branches:
- "**"
jobs:
build-and-release:
build:
name: Build App
runs-on: ${{ matrix.os }}
permissions:
contents: write
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ubuntu-latest
steps:
- name: Checkout
@@ -38,13 +29,5 @@ jobs:
- name: Install dependencies
run: pnpm install
- name: Build or Publish
run: |
if [[ "${{ startsWith(github.ref, 'refs/tags/') }}" == "true" ]]; then
pnpm run publish
else
pnpm run make
fi
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build
run: pnpm run package