XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/bilibili-API-collect

refactor(vuepress-deploy.yml): use classical page deployment (#1450)

* refactor(vuepress-deploy.yml): use classical page deployment * fix(vuepress-deploy.yml): typo

4f7ff61
Session小胡 <102411014+SessionHu@users.noreply.github.com>
提交于

代码差异

1 个文件 +16 -17
Modified .github/workflows/vuepress-deploy.yml +16 -17
@@ -1,15 +1,13 @@
1 1 name: deploy and publish
2 2
3 on: [push]
3 on:
4 workflow_dispatch:
5 push:
6 branches:
7 - master
4 8
5 9 permissions:
6 contents: read
7 pages: write
8 id-token: write
9
10 concurrency:
11 group: "pages"
12 cancel-in-progress: false
10 contents: write
13 11
14 12 jobs:
15 13 build-and-deploy:
@@ -27,12 +25,13 @@ jobs:
27 25 cache: yarn
28 26 - name: Build with yarn
29 27 run: yarn && yarn build
30 - name: Setup Pages
31 uses: actions/configure-pages@v5
32 - name: Upload artifact
33 uses: actions/upload-pages-artifact@v3
34 with:
35 path: '.vuepress/dist/'
36 - name: Deploy to GitHub Pages
37 id: deployment
38 uses: actions/deploy-pages@v4
28 - name: Commit & Push
29 run: |
30 cd .vuepress/dist/
31 git init -b gh_pages
32 git config user.name "github-actions"
33 git config user.email "github-actions@github.com"
34 git remote add origin https://user:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
35 git add -A .
36 git commit -m "generated"
37 git push -fu origin gh_pages