Update thinks.md #97
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docs Build and Upload to Cloudflare | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ main ] | |
paths: | |
- 'docs/**' | |
- 'i18n/**' | |
- 'src/**' | |
- 'static/**' | |
- '**.js' | |
- '!docs/_list' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Docusaurus build | |
run: | | |
yarn install | |
yarn run build | |
env: | |
CI: true | |
- name: debug | |
run: ls | |
- name: Publish to Cloudflare Pages | |
uses: cloudflare/pages-action@v1 | |
with: | |
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
accountId: eb79f13320db531d8cf1f3720966b695 | |
projectName: handbook | |
directory: build | |
# Optional: Enable this if you want to have GitHub Deployments triggered | |
gitHubToken: ${{ secrets.GITHUB_TOKEN }} | |
# Optional: Switch what branch you are publishing to. | |
# By default this will be the branch which triggered this workflow | |
branch: main |