-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (41 loc) · 1.09 KB
/
build-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: Build and deploy to Netlify
on:
schedule:
- cron: '0 0 * * *'
push:
branches:
- main
pull_request:
types: [opened, synchronize]
jobs:
build-deploy:
runs-on: ubuntu-20.04
defaults:
run:
working-directory: site
steps:
- name: Checkout c2pa
uses: actions/checkout@v3
with:
repository: contentauth/c2pa-js
path: c2pa-js
- name: Checkout site
uses: actions/checkout@v3
with:
path: site
- name: Install dependencies
run: npm install
- name: Build site
run: npm run build
- name: Deploy to Netlify
uses: nwtgck/[email protected]
with:
publish-dir: './site/build'
production-branch: main
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: 'Deploy from GitHub Actions'
alias: deploy-preview-${{ github.event.number }}
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 1