Skip to content

Merge pull request #218 from ulixee/release #49

Merge pull request #218 from ulixee/release

Merge pull request #218 from ulixee/release #49

Workflow file for this run

name: Deploy to Github Pages
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy Website
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Clone Hero
run: |
git clone -n --recurse-submodules https://github.com/ulixee/hero.git
cd hero
(git fetch --depth 1 origin $GITHUB_REF_NAME && git checkout $GITHUB_REF_NAME) || (git fetch --depth 1 origin main && git checkout main)
git submodule update --init --recursive --depth 1
working-directory: ..
- name: Create Node Environment
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'yarn'
- name: Install Packages and Build Website
run: |
cd website
yarn install
yarn build
cp dist/index.html dist/404.html
- name: Deploy
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: gh-pages
FOLDER: website/dist
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}