refactor(vuepress-deploy.yml): use classical page deployment (#1450)
* refactor(vuepress-deploy.yml): use classical page deployment * fix(vuepress-deploy.yml): typo
This commit is contained in:
parent
8b3532b442
commit
4f7ff61ca7
33
.github/workflows/vuepress-deploy.yml
vendored
33
.github/workflows/vuepress-deploy.yml
vendored
@ -1,15 +1,13 @@
|
|||||||
name: deploy and publish
|
name: deploy and publish
|
||||||
|
|
||||||
on: [push]
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: write
|
||||||
pages: write
|
|
||||||
id-token: write
|
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: "pages"
|
|
||||||
cancel-in-progress: false
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-deploy:
|
build-and-deploy:
|
||||||
@ -27,12 +25,13 @@ jobs:
|
|||||||
cache: yarn
|
cache: yarn
|
||||||
- name: Build with yarn
|
- name: Build with yarn
|
||||||
run: yarn && yarn build
|
run: yarn && yarn build
|
||||||
- name: Setup Pages
|
- name: Commit & Push
|
||||||
uses: actions/configure-pages@v5
|
run: |
|
||||||
- name: Upload artifact
|
cd .vuepress/dist/
|
||||||
uses: actions/upload-pages-artifact@v3
|
git init -b gh_pages
|
||||||
with:
|
git config user.name "github-actions"
|
||||||
path: '.vuepress/dist/'
|
git config user.email "github-actions@github.com"
|
||||||
- name: Deploy to GitHub Pages
|
git remote add origin https://user:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
|
||||||
id: deployment
|
git add -A .
|
||||||
uses: actions/deploy-pages@v4
|
git commit -m "generated"
|
||||||
|
git push -fu origin gh_pages
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user