-
-
Notifications
You must be signed in to change notification settings - Fork 20
40 lines (31 loc) · 1.14 KB
/
build_and_deploy.yaml
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
38
39
40
# see https://github.com/marketplace/actions/deploy-to-github-pages
name: Build and Deploy
on:
push:
branches:
- main
schedule:
# * is a special character in YAML so you have to quote this string
# https://crontab.guru/every-12-hours
- cron: '0 */12 * * *'
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: 8.2
- run: composer install --no-progress --ansi
- run: bin/console import --ansi
- run: bin/console stenope:build -e prod
# see https://github.com/JamesIves/github-pages-deploy-action
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
folder: build
- name: Purge Cloudflare cache
uses: jakejarvis/cloudflare-purge-action@master
env:
CLOUDFLARE_ZONE: ${{ secrets.CLOUDFLARE_ZONE }}
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}