Skip to content

feat: refactor authentication (#3) #3

feat: refactor authentication (#3)

feat: refactor authentication (#3) #3

Workflow file for this run

on: [push]
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Deploy to Cloudflare Pages
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
# Run your project's build step
- name: Use Yarn 4
run: corepack enable
- name: Build
run: yarn install --immutable && yarn build
- name: Publish
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: fcc-cms-6b4t # e.g. 'my-project'
directory: dist # e.g. 'dist'
gitHubToken: ${{ secrets.GITHUB_TOKEN }}