forked from titanson/titanson.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (69 loc) · 2.18 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Build and Deploy
on:
push:
branches:
- source
pull_request:
branches:
- source
schedule:
- cron: '*/10 * * * *'
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.1
ini-values: opcache.enable_cli=1, opcache.jit=tracing
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
coverage: none
tools: composer:v2
- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install dependencies 🔧
run: |
composer self-update
composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
- name: TimeZone ⏰
run: |
sudo timedatectl set-timezone UTC
timedatectl
- name: Artisan 🔮
env:
APP_NAME: Titanson
APP_ENV: production
APP_KEY: base64:hh+C71dWj0tmdKkazohGJh5vxSGNkvN1H9o6IDwEyaA=
APP_DEBUG: false
APP_URL: https://titanson.github.io
run: |
php artisan config:cache
php artisan rss:download
php artisan rss:exchange
php artisan rss:similar
php artisan rss:page
- name: Logs 📑️
uses: actions/upload-artifact@v2
with:
name: Logs
path: storage/logs/
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
single-commit: true
clean: true
token: ${{ secrets.ACCESS_TOKEN }}
branch: master
folder: public