GitHub Pages #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
# Deploy your Hyas site to GitHub Pages | |
name: GitHub Pages | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Run the build process with Docker | |
uses: addnab/docker-run-action@v3 | |
with: | |
image: ubuntu:23.04 | |
options: -v ${{ github.workspace }}:${{ github.workspace }} -w ${{ github.workspace }} | |
run: | | |
apt update && apt install -y npm | |
npm install | |
npm run production | |
npm run build | |
ls -laR # debug step | |
- name: List all files to deploy (debug step) | |
run: | | |
ls -laR | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./public |