-
-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (29 loc) · 915 Bytes
/
retype-action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Update BRAW 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/[email protected]
- uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.x
- 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}'