mirror of
https://github.com/gkd-kit/docs.git
synced 2024-11-16 13:52:19 +08:00
chore: deploy
This commit is contained in:
parent
86e3588cda
commit
3fa5314932
|
@ -1,4 +1,4 @@
|
||||||
name: gh-pages
|
name: deploy
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
@ -8,7 +8,7 @@ permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
gh-pages:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
@ -33,8 +33,9 @@ jobs:
|
||||||
- run: git checkout .
|
- run: git checkout .
|
||||||
- run: curl -X PUT 'https://registry-direct.npmmirror.com/@gkd-kit/docs/sync'
|
- run: curl -X PUT 'https://registry-direct.npmmirror.com/@gkd-kit/docs/sync'
|
||||||
|
|
||||||
- uses: peaceiris/actions-gh-pages@v3
|
- uses: cloudflare/pages-action@v1
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
publish_dir: ./.vitepress/dist
|
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||||
cname: gkd.li
|
projectName: gkd-docs
|
||||||
|
directory: ./.vitepress/dist
|
Loading…
Reference in New Issue
Block a user