mirror of
https://github.com/badges/shields.git
synced 2026-11-21 16:06:35 +03:00
* Centralize CI node-version in `.node-version` * Add `node-version-file` to our custom setup action * Fix missing input field * Maintain the `node-version-file` default value in `setup/action.yml`
31 lines
546 B
YAML
31 lines
546 B
YAML
name: Deploy Documentation
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
deploy-docs:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Setup
|
|
uses: ./.github/actions/setup
|
|
|
|
- name: Build
|
|
run: npm run build-docs
|
|
|
|
- name: Deploy
|
|
uses: JamesIves/github-pages-deploy-action@v4
|
|
with:
|
|
branch: gh-pages
|
|
folder: api-docs
|
|
clean: true
|