Skip to content

Merge pull request #402 from stavros-k/browserslist-update #61

Merge pull request #402 from stavros-k/browserslist-update

Merge pull request #402 from stavros-k/browserslist-update #61

Workflow file for this run

name: Cloudflare Pages
on:
pull_request:
push:
branches:
- master
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Publish to Cloudflare Pages
steps:
- name: Checkout
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
with:
fetch-depth: 0
- name: Setup Cache
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
with:
key: astro
path: ./.astro
- name: Setup Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4
with:
node-version-file: .nvmrc
cache: npm
- name: Install Packages
run: npm ci
- name: Build
run: npm run build
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@f0a1cd58cd66095dee69bfa18fa5efd1dde93bca # v1
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
branch: ${{ github.ref == 'refs/heads/master' && 'main' || github.head_ref }}
projectName: documentation
directory: ./build
wranglerVersion: "3"