-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (44 loc) · 1.19 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Build and deploy
on:
push:
branches:
- master
schedule:
- cron: "0 8 1 * *"
jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/[email protected]
with:
persist-credentials: false
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Install and build frontend
env:
VUE_APP_MAPBOX_TOKEN: "${{ secrets.VUE_APP_MAPBOX_TOKEN }}"
VUE_APP_MAPBOX_STYLE_URL: "${{ secrets.VUE_APP_MAPBOX_STYLE_URL }}"
run: |
npm install
npm run-script build
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
coverage: none
- name: Install and build backend
run: |
composer install
echo 'VUE_APP_MAPBOX_TOKEN="${{ secrets.VUE_APP_MAPBOX_TOKEN }}"' > .env
composer build
- name: Handle 404 for GitHub Pages
run: cp index.html 404.html
working-directory: public
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
BRANCH: public
FOLDER: public
CLEAN: true