Skip to content

Commit

Permalink
wip: github action, deploy gh
Browse files Browse the repository at this point in the history
  • Loading branch information
deptno committed Jan 15, 2024
1 parent 227eea7 commit 5481d82
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: deploy gh pages

on:
push:
branches:
- lab/deploy-gh

jobs:
install:
runs-on: ubuntu-latest

steps:
- name: checkout
uses: actions/checkout@v4
with:
path: wiki/public-wiki
- name: checkout frontend
uses: actions/checkout@v4
with:
repository: deptno/deptno.dev
path: deptno.dev
- uses: pnpm/action-setup@v2
with:
version: 8
- env:
NEXT_PUBLIC_MEILISEARCH_HOST: https://search.deptno.dev
NEXT_PUBLIC_MEILISEARCH_API_KEY: fde26209c267ac6b5802e52d0582a18ad593d3853f354e3d63e67d40c36628a7
NEXT_PUBLIC_ENDPOINT: https://deptno.dev
DIR_WIKI_ROOT: ../wiki
DIR_WIKI: wiki/public-wiki
URL_ME: /public-wiki/about-me
NEXT_PUBLIC_GOOGLE_ANALYTICS_ID: G-C362H0MHTV
NEXT_PUBLIC_MS_CLARITY_ID: hbj4961k1t
run: |
git -C public-wiki rev-parse --short @ > $DIR_WIKI/.CURRENT_REVISION
pnpm -C deptno.dev turbo run build --no-cache
touch deptno.dev/apps/wiki/out/.nojekyll
ls deptno.dev/apps/wiki/out
git config user.name github-actions
git config user.email deptno@gmail.com

0 comments on commit 5481d82

Please sign in to comment.