Skip to content

chore: release packages (#96) #157

chore: release packages (#96)

chore: release packages (#96) #157

Workflow file for this run

name: Update docs
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.P_GITHUB_TOKEN }}
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
cache-dependency-path: 'pnpm-lock.yaml'
- name: Install dependencies
run: pnpm install --frozen-lockfile --ignore-scripts
- name: Build documentation
run: |
pnpm run build:docs
cp ./packages/ui/dist/index.html ./packages/ui/dist/404.html
- name: Update pages
working-directory: ./packages/ui/dist
run: |
git config --global init.defaultBranch master
git init
git config user.name 'indielayer-ci'
git config user.email 'bot+ci@indielayer.com'
git add .
git commit -m "chore: deploy documentation: ${{github.sha}}"
git push -f https://${{ secrets.P_GITHUB_TOKEN }}@github.com/indielayer/ui master:gh-pages