Update build.yml

This commit is contained in:
2025-05-19 13:41:04 +09:00
committed by GitHub
parent 817c6140f3
commit fa781c797f

View File

@@ -7,7 +7,6 @@ on:
workflow_dispatch: workflow_dispatch:
schedule: schedule:
- cron: "0 0 * * *" - cron: "0 0 * * *"
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -38,10 +37,10 @@ jobs:
sudo apt update sudo apt update
sudo apt install -y jq python3 sudo apt install -y jq python3
- name: Add AppImage - name: Modify package.json
run: | run: |
cp package.json package.json.orig cat package.json | jq '.build.linux.target = ["AppImage"]' > package.json
cat package.json.orig | jq '.build.linux.target = ["AppImage"]' > package.json cat package.json | jq '.build.linux.publish = ["none"]' > package.json
- name: Read .nvmrc - name: Read .nvmrc
run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_OUTPUT run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_OUTPUT
@@ -58,7 +57,7 @@ jobs:
- name: Build - name: Build
run: | run: |
pnpm install pnpm install
pnpm build --publish=never pnpm build
- name: Upload Build Artifacts - name: Upload Build Artifacts
uses: actions/upload-artifact@v4.6.2 uses: actions/upload-artifact@v4.6.2