This commit is contained in:
agczsz 2023-06-30 22:30:38 +08:00 committed by patr-ci
parent a48a84e992
commit 963f6950aa
1 changed files with 26 additions and 0 deletions

26
patr.yml Normal file
View File

@ -0,0 +1,26 @@
version: v0
kind: Pipeline
name: Default
services: []
steps:
- name: Install Dependencies
image: patrcloud/cli:latest
commands:
- npm install
next: Build Code
- name: Build Code
image: patrcloud/cli:latest
commands:
- npm run build
next: Publish on Patr
- name: Publish on Patr
image: patrcloud/cli:latest
commands:
- patr login -u "$USERNAME" -p "$PASSWORD"
- patr workspace switch "$WORKSPACE_ID"
- patr site upload --site ./dist "music" --msg "$PATR_CI_COMMIT_MESSAGE"
environment:
USERNAME: agczsz
PASSWORD:
from_secret: PATR_PASSWORD
WORKSPACE_ID: 5295d858688749c88a39100195147b85