Merge pull request #592 from terra-money/bridge #1513
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: cloudlfare-docs | |
on: | |
workflow_dispatch: | |
push: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
deployments: write | |
name: Publish to Cloudflare Pages | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn install | |
- name: Build source code. | |
run: yarn build | |
- name: Publish to Cloudflare Pages | |
uses: cloudflare/pages-action@1 | |
with: | |
accountId: 620ff29bbd515d2848f5306578bd1d1d | |
apiToken: ${{ secrets.CLOUDFLARE_PAGES_TOKEN }} | |
projectName: docs-terra | |
directory: build | |
gitHubToken: ${{ secrets.GITHUB_TOKEN }} |