Skip to content

chore(misc): auto deploy from HUB CI #118

chore(misc): auto deploy from HUB CI

chore(misc): auto deploy from HUB CI #118

Workflow file for this run

name: Deploy to Github Pages
on:
push:
branches:
- main
jobs:
deployment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "lts/*"
cache: "yarn"
- uses: actions/cache@v3
with:
path: |
${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
- name: Build
env:
PACKAGE_INDEX_URL: "https://github.com/espanso/hub/releases/download/v1.0.0/package_index.json"
run: |
yarn
yarn build
yarn export
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./out
cname: hub.espanso.org