Fix typos #278
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
# https://github.com/marketplace/actions/deploy-to-cloudflare-workers-with-wrangler | |
# https://github.com/cloudflare/wrangler-action | |
name: Deploy to Cloudflare Workers with Wrangler | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
name: Deploy | |
steps: | |
- uses: actions/checkout@master | |
- name: Write Wrangler configs | |
run: | | |
echo ${{ secrets.WRANGLER_ENV }} | base64 -d > doesitarm-default/.env | |
cat doesitarm-default/.env | |
echo ${{ secrets.WRANGLER_TOML }} | base64 -d > doesitarm-default/wrangler.toml | |
cat doesitarm-default/wrangler.toml | |
npm install | |
# Analytics Worker | |
echo ${{ secrets.ANALYTICS_WRANGER_TOML }} | base64 -d > workers/analytics/wrangler.toml | |
cat workers/analytics/wrangler.toml | |
npm install | |
- name: Deploy Default Worker | |
uses: cloudflare/[email protected] | |
with: | |
apiToken: ${{ secrets.CF_API_TOKEN }} | |
workingDirectory: 'doesitarm-default' | |
- name: Deploy Analytics Worker | |
uses: cloudflare/[email protected] | |
with: | |
apiToken: ${{ secrets.CF_API_TOKEN }} | |
workingDirectory: 'workers/analytics' |