Skip to content

Build And Deploy to cloudflare #19

Build And Deploy to cloudflare

Build And Deploy to cloudflare #19

Workflow file for this run

name: Build And Deploy to cloudflare
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install Dependencies
run: |
cd source
yarn install
- name: Build
run: |
cd source
yarn build
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: eb79f13320db531d8cf1f3720966b695
projectName: www-websoft9-com
directory: ./source/public
# Optional: Enable this if you want to have GitHub Deployments triggered
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
# Optional: Switch what branch you are publishing to.
# By default this will be the branch which triggered this workflow
branch: main