chore: deploy

This commit is contained in:
lisonge 2024-01-28 00:10:16 +08:00
parent 86e3588cda
commit 3fa5314932

View File

@ -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