-
Notifications
You must be signed in to change notification settings - Fork 364
41 lines (41 loc) · 1.09 KB
/
main_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
41
name: AppDeploy
on:
schedule:
- cron: '0 */4 * * *'
push:
paths:
- 'readme-profiles/*.md'
- 'src/**'
- 'contributors.json'
branches:
- main
jobs:
deploy-app:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Build Project
uses: actions/setup-node@v1
with:
node-version: '12'
- name: Cache multiple paths
uses: actions/cache@v2
with:
path: |
~/cache
!~/cache/exclude
**/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/package.lock.json') }}
- run: npm i
- env:
GITHUB_TOKEN: ${{ secrets.USER_TOKEN }}
run: npm run build
- name: Deploy production to Netlify
uses: South-Paw/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
netlify-auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }}
netlify-site-id: ${{ secrets.NETLIFY_SITE_ID }}
build-dir: './public'
comment-on-commit: true