Skip to content

Commit

Permalink
feat: io
Browse files Browse the repository at this point in the history
  • Loading branch information
xxxsf committed Mar 25, 2024
1 parent dc3b6de commit 5a461fe
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-v2-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
build-and-deploy:
runs-on: macos-14
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3 # 检出仓库
- uses: actions/setup-node@v3 # 设置node版本
Expand Down
54 changes: 27 additions & 27 deletions .github/workflows/deploy2io.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
name: sync to github.io
# name: sync to github.io

on:
push:
branches:
- main # default branch
paths:
- ".github/workflows/**"
- "**"
# on:
# push:
# branches:
# - main # default branch
# paths:
# - ".github/workflows/**"
# - "**"

jobs:
copy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3 # 检出仓库
- uses: actions/setup-node@v3 # 设置node版本
with:
node-version: 16
- run: npm install
- run: npm run build
# jobs:
# copy:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3 # 检出仓库
# - uses: actions/setup-node@v3 # 设置node版本
# with:
# node-version: 16
# - run: npm install
# - run: npm run build

- name: Sync
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: main # action 应该部署到的分支。
folder: dist # 操作应该部署的文件夹。
clean: false
repository-name: hellof2e/vue-quarkd.github.io
token: ${{ secrets.GIT_ACTION }}
target-folder: /
# - name: Sync
# uses: JamesIves/github-pages-deploy-action@v4
# with:
# branch: main # action 应该部署到的分支。
# folder: dist # 操作应该部署的文件夹。
# clean: false
# repository-name: hellof2e/vue-quarkd.github.io
# token: ${{ secrets.GIT_ACTION }}
# target-folder: /

0 comments on commit 5a461fe

Please sign in to comment.