Skip to content

Update Marker Toolbox Website & Publish to GitHub Pages #41

Update Marker Toolbox Website & Publish to GitHub Pages

Update Marker Toolbox Website & Publish to GitHub Pages #41

Workflow file for this run

name: Update Marker Toolbox Website & Publish to GitHub Pages
on:
workflow_dispatch:
push:
branches:
- main
jobs:
publish:
name: Publish to retype branch
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: retypeapp/action-build@latest
with:
license: ${{ secrets.RETYPE_SECRET }}
- uses: retypeapp/action-github-pages@latest
with:
update-branch: true
- name: Purge CloudFlare cache
run: |
curl -X POST "https://api.cloudflare.com/client/v4/zones/${{ secrets.CLOUDFLARE_ZONE_ID }}/purge_cache" \
-H "Authorization: Bearer ${{ secrets.CLOUDFLARE_API_TOKEN }}" \
-H "Content-Type: application/json" \
--data '{"purge_everything":true}'