-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (30 loc) · 913 Bytes
/
deploy.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
name: deploy
on:
push:
branches:
- master # Set a branch name to trigger deployment
jobs:
deploy:
runs-on: ubuntu-20.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v4
- uses: withastro/action@v3
with:
package-manager: bun
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
cname: www.pieterwillekens.nl
- name: Sleep for 20 seconds to wait for deployment to complete
uses: jakejarvis/wait-action@master
with:
time: '20s'
- name: Cloudflare Purge Cache
uses: jakejarvis/[email protected]
env:
CLOUDFLARE_TOKEN: ${{secrets.CLOUDFLARE_TOKEN}}
CLOUDFLARE_ZONE: c83845c6fa8b184eabec2721f23d3f68