tangzhiyao 构建插件 #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
run-name: ${{ github.actor }} 构建插件 | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- build-** | |
permissions: | |
contents: write | |
jobs: | |
build-extension: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 读取仓库 | |
uses: actions/checkout@v4 | |
- name: 打包 | |
run: | | |
npm install | |
npm run build | |
- name: 部署 | |
uses: JamesIves/github-pages-deploy-action@4.1.4 | |
with: | |
branch: gh-pages | |
folder: build | |