-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 1.08 KB
/
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
39
40
41
name: Deploy to gh-pages
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install dependencies
run: npm ci
- name: Build project
run: npm run build
- name: Add dist folder
run: git add dist -f
env:
GIT_AUTHOR_NAME: ${{ github.actor }}
GIT_AUTHOR_EMAIL: [email protected]
GIT_COMMITTER_NAME: ${{ github.actor }}
GIT_COMMITTER_EMAIL: [email protected]
- name: Commit changes
run: git commit -m "adding dist"
env:
GIT_AUTHOR_NAME: ${{ github.actor }}
GIT_AUTHOR_EMAIL: [email protected]
GIT_COMMITTER_NAME: ${{ github.actor }}
GIT_COMMITTER_EMAIL: [email protected]
- name: Push to gh-pages
run: git subtree push --prefix dist https://github.com/pfrito/Multiple-Sclerosis-Diagnosis gh-pages
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}