Add files via upload #219
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: Auto update, build and deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
update: | |
name: Build website | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout Repo | |
uses: actions/[email protected] | |
with: | |
persist-credentials: false | |
- name: Install and build | |
run: | | |
npm install | |
npm run build | |
- name: Push and deploy build to GH pages 🚀 | |
uses: JamesIves/[email protected] | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: dist | |
SINGLE_COMMIT: true | |