-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (46 loc) · 1.24 KB
/
Manual_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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: CI/CD to Github Pages [Manual]
# This is a basic workflow to Deploy our frontend to github pages
# Controls when the workflow will run
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: write
jobs:
Unit_testing:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./best-uvic-scheduler
steps:
- name: Checkout Code 🛎
uses: actions/checkout@v3
- name: Gather Dependencies
run: |
npm install
- name: Running Unit Tests
working-directory: ./best-uvic-scheduler
run: |
npm run test:nowatch
Manual_Deploy:
concurrency: ci-${{ github.ref }}
needs: Unit_testing
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./best-uvic-scheduler
steps:
- name: Checkout Code 🛎
uses: actions/checkout@v3
- name: Gather Dependencies
run: |
npm install
- name: Production Build
working-directory: ./best-uvic-scheduler
run: |
npm run build
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
folder: ./best-uvic-scheduler/build