-
Notifications
You must be signed in to change notification settings - Fork 165
38 lines (29 loc) · 968 Bytes
/
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
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Deploy
on:
schedule:
- cron: "*/30 0-17,23 * * *"
- cron: "*/60 18-22 * * *"
jobs:
deploy:
name: Scheduled Deployment
if: github.repository == 'kawalcovid19/wargabantuwarga.com'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: 14.x
- name: Install dependencies
run: yarn
- name: Build and export static assets
run: yarn run netlify-export
- name: Install Netlify CLI
run: yarn global add [email protected]
- name: Deploy to Netlify
run: netlify deploy --prod --dir=out --message "GitHub Actions"
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}