2021-10-07 02:35:46 +00:00
|
|
|
name: GitHub pages
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
deploy:
|
2021-11-13 22:36:55 +00:00
|
|
|
if: github.repository == 'openwrt/luci'
|
2021-10-07 02:35:46 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Install
|
|
|
|
run: npm install
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: npm run doc
|
|
|
|
|
|
|
|
- name: Archive docs as artifact
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: docs
|
|
|
|
path: ./docs/
|
|
|
|
|
|
|
|
- name: Deploy
|
|
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
|
|
with:
|
2021-10-09 03:20:07 +00:00
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
2021-10-07 02:35:46 +00:00
|
|
|
publish_dir: ./docs/
|
2021-10-09 09:35:42 +00:00
|
|
|
enable_jekyll: true
|