-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 948 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
name: Build and Deploy
on:
push:
branches:
- main
- master
pull_request: {}
permissions:
contents: write
env:
SUBDIR: /scholarly-browser/
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Setup Node ✨
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: npm
- name: Install and Build 🔧
run: |
npm i
cd node_modules/artifact-explorer && npm i && npm run build && cd ../.. # Install and build artifact-explorer dependency (not done automatically because installed from GitHub).
npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: pages
FOLDER: dist
CLEAN: true