Skip to content

Commit

Permalink
Merge pull request #2 from AgataBialoskorska/add-deployment
Browse files Browse the repository at this point in the history
Add GitHub Actions deployment workflow
  • Loading branch information
AgataBialoskorska authored Mar 14, 2024
2 parents e6374ca + 0b406c4 commit 7625238
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Node.js CI
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
# https://github.com/actions/checkout
- uses: actions/checkout@v3
# a standard step for GitHub actions on Node
# https://github.com/actions/setup-node
- uses: actions/setup-node@v3
with:
# update the Node version to meet your needs
node-version: 21
cache: npm
- name: Build
run: |
npm ci
npm run build
npm run export
- name: Deploy
# https://github.com/JamesIves/github-pages-deploy-action
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: out

0 comments on commit 7625238

Please sign in to comment.