Skip to content

Commit

Permalink
feat: add CI/CD workflow for GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
cheykoff committed May 21, 2023
1 parent 4997153 commit eab2acd
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build and Deploy
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 14

- name: Install Dependencies
run: npm ci

- name: Run Tests
run: ng test

- name: Build
run: ng build

- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@4
with:
branch: gh-pages
folder: dist/quizapp

0 comments on commit eab2acd

Please sign in to comment.