Skip to content

Commit

Permalink
feat: 新增打包命令
Browse files Browse the repository at this point in the history
  • Loading branch information
tangzhiyao committed Apr 28, 2024
1 parent 357f8ee commit 750b6d1
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,25 @@
name: learn-action
name: build
run-name: ${{ github.actor }} is learning actions
on: [push]

permissions:
contents: write

jobs:
check-bats-version:
build-extension:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: 读取仓库
uses: actions/checkout@v4

- name: 打包
run: |
npm install
npm run build
- name: 部署
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
node-version: '20'
- run: npm install -g bats
- run: bats -v

branch: gh-pages
folder: build

0 comments on commit 750b6d1

Please sign in to comment.