Skip to content

add hint for server selection #304

add hint for server selection

add hint for server selection #304

Workflow file for this run

name: Deploy
on:
push:
branches:
- docs
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: "false"
NEXT_TELEMETRY_DISABLED: '1'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 22.x
- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn config get globalFolder)"
- name: Restore Cache
uses: actions/cache@v4
with:
path: |
${{ steps.yarn-cache.outputs.dir }}
~/.npm
${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-next-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-next-yarn-
- name: Install
run: yarn
- name: Build
run: yarn build && echo "hydro.js.org" >./out/CNAME
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./out
publish_branch: master
force_orphan: true