Skip to content

Merge pull request #698 from okyanusoz/patch-1 #647

Merge pull request #698 from okyanusoz/patch-1

Merge pull request #698 from okyanusoz/patch-1 #647

Workflow file for this run

name: Deploy
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Navigate to repo
run: cd $GITHUB_WORKSPACE
- uses: actions/setup-node@v1
with:
node-version: '19.x'
- name: Install deps
run: npm ci
- name: Build site
run: npm run build
- name: Build Workers script
run: npm run build-worker
env:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
- name: Wrangler auth check
run: npm run wrangler-whoami
env:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
- name: Upload assets
run: npm run deploy-worker
env:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }}