-
-
Notifications
You must be signed in to change notification settings - Fork 139
48 lines (42 loc) · 1.2 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
name: Build and Deploy
on:
push:
branches:
- master
schedule:
- cron: '0 0 * * *'
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Setup PHP 🔧
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
extensions: mbstring, xml
coverage: none
tools: composer:v2
- name: Install and Build 🔧
run: |
composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
- name: Generate
env:
APP_NAME: Orchid
APP_ENV: production
APP_KEY: base64:8Jv9H6OMWkWui9VzMwjSiLPfMqRnZGN0PNVUmMc5Dyc=
APP_DEBUG: false
APP_URL: https://orchid.software
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
run: |
php artisan export
php artisan make:sitemap
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: gh-pages
FOLDER: storage/app/public