Skip to content

Commit

Permalink
build: update project build and dependencies (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianprime0509 authored Mar 28, 2023
1 parent 676df91 commit 66c2b12
Show file tree
Hide file tree
Showing 4 changed files with 565 additions and 534 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm ci
- run: npm run build -- --base /temperatune/
- uses: actions/upload-pages-artifact@v1
if: github.ref == 'refs/heads/main'
with:
path: dist

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm ci
- run: npm run build
- run: npm test
env:
CI: true

deploy:
needs: [build, test]
if: github.ref == 'refs/heads/main'
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/deploy-pages@v2
id: deployment
41 changes: 0 additions & 41 deletions .github/workflows/cicd.yaml

This file was deleted.

Loading

0 comments on commit 66c2b12

Please sign in to comment.