Skip to content

Merge pull request #2 from FlavienVolant/master #3

Merge pull request #2 from FlavienVolant/master

Merge pull request #2 from FlavienVolant/master #3

name: Build and deploy
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
container: node:21
steps:
- uses: actions/checkout@v3
- name: install dependancies
run: |
rm -rf dist/
mkdir dist/
cp -r utils/ dist/utils/
cp -r filters/ dist/filters/
cp -r utilsOneEuro/ dist/utilsOneEuro/
cp calibrator.js dist/
cp index.html dist/
cp LICENSE.txt dist/
cp main.css dist/
cp main.js dist/
cp target.js dist/
- name: Archive built files
uses: actions/upload-pages-artifact@v3
with:
name: 'github-pages'
path: dist
deploy:
needs: build
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4