mirror of
https://github.com/viarotel-org/escrcpy.git
synced 2026-06-02 14:10:27 +08:00
38 lines
827 B
YAML
38 lines
827 B
YAML
name: release-docs
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
build-and-deploy:
|
|
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out Git repository
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Install Node.js
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version: 24
|
|
|
|
- name: Enable corepack and pnpm
|
|
run: |
|
|
corepack enable
|
|
corepack prepare pnpm@10.29.2 --activate
|
|
|
|
- name: Install and Build
|
|
run: |
|
|
pnpm install
|
|
pnpm docs:build
|
|
|
|
- name: Deploy 🚀
|
|
uses: JamesIves/github-pages-deploy-action@v4
|
|
with:
|
|
branch: docs
|
|
folder: dist-docs |