-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (27 loc) · 861 Bytes
/
main.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
name: Deploy to GitHub Pages
on:
push:
branches:
- master
jobs:
test-build-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2.3.1
- name: Install
run: |
npm install
- name: Run tests
run: |
npm run-script check
- name: Build 🔧
run: |
npm run-script build
- name: Change base-tag in index.html from / to dictionary
run: sed -i 's/<base href="\/" \/>/<base href="\/dictionary\/" \/>/g' public/index.html
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.7
with:
branch: gh-pages
folder: public