Skip to content

GitHub Pages

GitHub Pages #13

Workflow file for this run

# 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