mirror of
https://github.com/foomo/gotsrpc.git
synced 2026-08-13 05:10:23 +00:00
51 lines
1.4 KiB
YAML
51 lines
1.4 KiB
YAML
name: Publish docs
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- v*.*.*
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
pages: write
|
|
contents: read
|
|
id-token: write
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
docs:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
environment:
|
|
name: github-pages
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
steps:
|
|
# https://github.com/actions/checkout/releases
|
|
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
|
|
|
|
# https://github.com/oven-sh/setup-bun/releases
|
|
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
|
|
|
|
- name: Install dependencies
|
|
working-directory: docs
|
|
run: bun install --frozen-lockfile
|
|
|
|
- name: Build docs
|
|
working-directory: docs
|
|
run: bun run build
|
|
|
|
# https://github.com/actions/configure-pages/releases
|
|
- uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0
|
|
|
|
# https://github.com/actions/upload-pages-artifact/releases
|
|
- uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
|
|
with:
|
|
path: docs/.vitepress/dist
|
|
|
|
- name: Deploy to GitHub Pages
|
|
id: deployment
|
|
# https://github.com/actions/deploy-pages/releases
|
|
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0 |