Skip to content

Website refresh

Website refresh #454

Workflow file for this run

name: Deploy to Cloudflare Pages
on:
pull_request:
workflow_dispatch:
permissions:
contents: read
deployments: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: 'true'
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "18"
- name: Install dependencies
run: npm ci
- name: Lint code
run: npm run lint
- name: Build website
run: npm run build
- name: Publish to Cloudflare Pages
id: publish
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: opentf-website
directory: ./build
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
wranglerVersion: 3