Skip to content

Commit

Permalink
自动发版配置
Browse files Browse the repository at this point in the history
  • Loading branch information
wenjing-xin committed Aug 30, 2024
1 parent 7cf03aa commit 317ff9e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 18 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: CD

on:
release:
types:
- published

jobs:
cd:
uses: halo-sigs/reusable-workflows/.github/workflows/plugin-cd.yaml@v2
secrets:
halo-pat: ${{ secrets.HALO_PAT }}
permissions:
contents: write
with:
node-version: "20"
pnpm-version: "9"
app-id: app-mBoYu
ui-path: "ui"
24 changes: 6 additions & 18 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,9 @@ on:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # required by automatic version
- name: Setup Environment
uses: halo-sigs/actions/plugin-setup-env@v1
with:
skip-node-setup: true

- name: Build with gradle
run: ./gradlew clean build
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: artifacts
path: "build/libs"
ci:
uses: halo-sigs/reusable-workflows/.github/workflows/plugin-ci.yaml@v1
with:
node-version: "20"
pnpm-version: "9"
ui-path: "ui"

0 comments on commit 317ff9e

Please sign in to comment.