Skip to content

Merge pull request #748 from AlexStorm1313/issue-747-AS33915-safe #672

Merge pull request #748 from AlexStorm1313/issue-747-AS33915-safe

Merge pull request #748 from AlexStorm1313/issue-747-AS33915-safe #672

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 }}