ci: fix docs build
This commit is contained in:
parent
a2fd1c6e79
commit
766f0399f1
1 changed files with 2 additions and 1 deletions
|
@ -23,11 +23,12 @@ jobs:
|
||||||
pnpm run docs
|
pnpm run docs
|
||||||
touch docs/.nojekyll
|
touch docs/.nojekyll
|
||||||
echo "ref.mtcute.dev" > docs/CNAME
|
echo "ref.mtcute.dev" > docs/CNAME
|
||||||
|
echo "ignore-workspace-root-check=true" >> .npmrc
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
# do not run on forks and releases
|
# do not run on forks and releases
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && github.actor == 'desu-bot'
|
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && github.actor == 'desu-bot'
|
||||||
uses: https://github.com/cloudflare/wrangler-action@v3
|
uses: https://github.com/cloudflare/wrangler-action@v3
|
||||||
with:
|
with:
|
||||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
apiToken: ${{ secrets.CLOUDFLARE_PAGES_TOKEN }}
|
||||||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||||
command: pages deploy docs --project-name=mtcute-apiref
|
command: pages deploy docs --project-name=mtcute-apiref
|
||||||
|
|
Loading…
Reference in a new issue