From 750b6d1ef5b3a123e2af3b8cdcd8f18a0d385022 Mon Sep 17 00:00:00 2001 From: tangzhiyao <335406905@qq.com> Date: Sun, 28 Apr 2024 23:01:25 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E6=89=93=E5=8C=85?= =?UTF-8?q?=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aa20cf9..7e6a521 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 +