ci: fix docs build

This commit is contained in:
alina 🌸 2024-12-31 01:09:55 +03:00
parent a2fd1c6e79
commit 766f0399f1
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI

View file

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