Skip to content

Dev (#49)

Dev (#49) #14

Workflow file for this run

name: Deploy docs
on:
push:
branches:
- main
- alpha
jobs:
release:
name: deploy docs
if: github.repository == 'node-real/walletkit'
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Checkout code repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: ./.github/actions/setup
- name: Build docs
run: pnpm build:docs
- name: Redirect
run: |
mkdir -p ./website/dist/website/dist
cat << EOF > "./website/dist/website/dist/index.html"
<script>window.location.href='https://node-real.github.io/walletkit'</script>
EOF
- name: Deploy docs
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ./website/dist
branch: 'docs'
clean: true
force: true