Deploy Gatsby to Cloudflare Workers
Simple GitHub Actions workflow to Cloudflare Workers
This workflow is very useful for private GitHub repository because GitHub pages does support for free private repo.
name: Publish Gatsby to Cloudflare Workers static pageon:push:branches:- mainjobs:build:runs-on: ubuntu-lateststeps:- uses: actions/checkout@master# TODO build with a specific Node.js and Yarn version- name: Build Gatsby site to a public folderrun: |yarn installyarn run build# https://github.com/cloudflare/wrangler-action- name: Publish to Couldflare static siteuses: cloudflare/wrangler-action@1.2.0with:# GET API token from https://dash.cloudflare.com/profile/api-tokensapiToken: ${{ secrets.CF_API_TOKEN }}
Useful information
Loading comments...