Update data.js #79
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy site to Cloudflare Workers | |
on: [push] | |
jobs: | |
deploy-main: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache yarn dependencies | |
uses: c-hive/gha-yarn-cache@v1 | |
- name: Use Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16.x | |
- run: yarn install --frozen-lockfile | |
- run: yarn bs | |
- name: Publish to Cloudflare Workers Sites | |
run: | | |
mkdir -p ~/.wrangler/config/ | |
echo "api_token=\"${CF_API_TOKEN}\"" > ~/.wrangler/config/default.toml | |
yarn wrangler publish --env production | |
env: | |
CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }} | |
CF_ZONE_ID: ${{ secrets.CF_ZONE_ID }} | |
CF_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }} |