Skip to content

Commit f51c192

Browse files
Merge pull request #73 from TheDragonCode/3.x
Revert docs generation from a branch
2 parents e627b0d + f7e8140 commit f51c192

File tree

1 file changed

+7
-22
lines changed

1 file changed

+7
-22
lines changed

.github/workflows/docs.yml

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -11,32 +11,18 @@ on:
1111
- completed
1212
workflow_dispatch:
1313

14-
permissions:
15-
contents: read
16-
pages: write
17-
id-token: write
18-
19-
concurrency:
20-
group: "pages"
21-
cancel-in-progress: true
14+
permissions: write-all
2215

2316
jobs:
2417
generate:
2518
runs-on: ubuntu-latest
2619

27-
environment:
28-
name: github-pages
29-
url: ${{ steps.deployment.outputs.page_url }}
30-
3120
steps:
3221
- uses: actions/checkout@v3
3322
with:
3423
fetch-depth: 0
3524
token: ${{ secrets.GITHUB_TOKEN }}
3625

37-
- name: Setup Pages
38-
uses: actions/configure-pages@v2
39-
4026
- name: Setup Node.js
4127
uses: actions/setup-node@v3
4228

@@ -56,11 +42,10 @@ jobs:
5642
- name: Build VuePress site
5743
run: npm run build
5844

59-
- name: Upload artifact
60-
uses: actions/upload-pages-artifact@v1
61-
with:
62-
path: './docs/.vuepress/dist'
63-
6445
- name: Deploy to GitHub Pages
65-
id: deployment
66-
uses: actions/deploy-pages@v1
46+
uses: crazy-max/ghaction-github-pages@v3.0.0
47+
with:
48+
target_branch: gh-pages
49+
build_dir: docs/.vuepress/dist
50+
env:
51+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)