-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (33 loc) · 935 Bytes
/
main.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
name: Deploy app
on:
push:
branches:
- main
jobs:
clone:
runs-on: self-hosted
steps:
- name: Remove old repo
run: rm -rf T-Caps
- name: Clone repo
run: git clone https://github.com/HE-Arc/T-Caps.git
- name: Go to repo folder
run: cd T-Caps/T-Caps
- name: Composer install
run: composer install --optimize-autoloader --no-dev
- name: Npm install
run: npm install
- name: Copy .env file
run: cp ../../../../../.env .env
- name: Generate key
run: php artisan key:generate
- name: Migrate database
run: php artisan migrate
- name: Cache php artisan config
run: php artisan config:cache
- name: Cache php artisan route
run: php artisan route:cache
- name: Cache php artisan view
run: php artisan view:cache
- name: Npm run build
run: npm run build