Skip to content

Fix: polish text

Fix: polish text #52

name: Build docs and try to deploy
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
id-token: write
concurrency:
group: docs
cancel-in-progress: false
jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0=
- uses: pnpm/action-setup@v3
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Build with VitePress
run: pnpm docs:build
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: huecker-docs
path: dist
# Deployment job
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- name: Tailscale
uses: tailscale/github-action@v2
with:
authkey: ${{ secrets.TAILSCALE_AUTHKEY }}
- name: Send request to sync server 1
run: curl --fail -X POST http://huecker1:6666
- name: Send request to sync server 2
run: curl --fail -X POST http://huecker2:6666