Skip to content
This repository was archived by the owner on Jan 30, 2026. It is now read-only.

Commit 4f7ff61

Browse files
authored
refactor(vuepress-deploy.yml): use classical page deployment (#1450)
* refactor(vuepress-deploy.yml): use classical page deployment * fix(vuepress-deploy.yml): typo
1 parent 8b3532b commit 4f7ff61

File tree

1 file changed

+16
-17
lines changed

1 file changed

+16
-17
lines changed
Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
name: deploy and publish
22

3-
on: [push]
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- master
48

59
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
1311

1412
jobs:
1513
build-and-deploy:
@@ -27,12 +25,13 @@ jobs:
2725
cache: yarn
2826
- name: Build with yarn
2927
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

0 commit comments

Comments
 (0)