Merge pull request #9 from zazuko/update-20240312 #13
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 the app on GitHub Pages | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
github-pages: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up NodeJS | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install dependencies | |
run: npm ci | |
- name: Build the app | |
run: npm run build | |
- name: Configure CNAME | |
run: echo ld-widget.zazuko.com > dist/ld-widget/CNAME | |
- name: Configure 404 page | |
run: cp dist/ld-widget/index.html dist/ld-widget/404.html | |
- name: Deploy to GitHub Pages | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: gh-pages | |
folder: dist/ld-widget |