Skip to content

make all links from the answers external #340 #161

make all links from the answers external #340

make all links from the answers external #340 #161

Workflow file for this run

name: Deploy to Cloudflare Worker
on:
workflow_dispatch:
pull_request:
branches:
- master
types:
- closed
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
jobs:
deploy:
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- name: Clone stampy-ui repository code
uses: actions/checkout@v3
- name: Deploy to Cloudflare
run: |
cat wrangler.toml.template \
| sed s/{CLOUDFLARE_ACCT_ID}/${{ secrets.CLOUDFLARE_ACCT_ID }}/ \
| sed s/{STAMPY_KV_ID}/${{ secrets.STAMPY_KV_ID }}/ \
| sed s/{CODA_TOKEN}/${{ secrets.CODA_TOKEN }}/ \
| sed s/{CODA_INCOMING_TOKEN}/${{ secrets.CODA_INCOMING_TOKEN }}/ \
| sed s/{CODA_WRITES_TOKEN}/${{ secrets.CODA_WRITES_TOKEN }}/ \
> wrangler.toml
npm ci
npm run deploy
- name: 'Debug: list files in build directory'
run: ls -R build public/build