Skip to content

Commit

Permalink
Merge pull request CIS-566-Fall-2021#1 from CIS-566-Fall-2021/deploy
Browse files Browse the repository at this point in the history
Update build dependencies and add Github Workflows deploy script
  • Loading branch information
austinEng authored Sep 8, 2021
2 parents 75d8213 + e0ef15f commit 0a0b6b3
Show file tree
Hide file tree
Showing 11 changed files with 3,190 additions and 15,366 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@


name: Build and Deploy
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
with:
persist-credentials: false

- uses: actions/setup-node@v2-beta
with:
node-version: "15.x"

- uses: actions/cache@v2
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ hashFiles('**/package-lock.json') }}

- name: Install and Build 🔧
run: |
npm ci
export NODE_ENV=production
npm run-script build
touch dist/.nojekyll
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: dist
CLEAN: true
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,6 @@ typings/

# next.js build output
.next

dist/bundle.js
dist/bundle.js.map
Loading

0 comments on commit 0a0b6b3

Please sign in to comment.