Update README.md #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |