-
Notifications
You must be signed in to change notification settings - Fork 4
34 lines (34 loc) · 1.06 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
# From https://medium.com/@cmichel/how-to-deploy-a-create-react-app-with-github-actions-5e01f7a7b6b
name: Deployment
on:
push:
branches:
- production
jobs:
deploy:
runs-on: ubuntu-latest
env:
working-directory: ./client-course-schedulizer
strategy:
matrix:
node-version: [14.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install Packages
run: npm install
working-directory: ${{env.working-directory}}
- name: Build Page
run: npm run build
working-directory: ${{env.working-directory}}
- name: Remove gh-pages Cache
run: rm -rf node_modules/gh-pages/.cache
working-directory: ${{env.working-directory}}
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./client-course-schedulizer/build