mirror of
https://github.com/ClementTsang/bottom.git
synced 2024-11-11 04:47:36 +03:00
0c648ed14a
action-rs' action seems to not be really maintained anymore and throws some redundant warnings that kinda clog up outputs. As such, I feel like moving to a more active action is probably worth it.
47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
name: docs
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- "docs/**"
|
|
- ".github/workflows/docs.yml"
|
|
|
|
env:
|
|
# Assign commit authorship to official Github Actions bot when pushing to the `gh-pages` branch:
|
|
GIT_USER: "github-actions[bot]"
|
|
GIT_EMAIL: "41898282+github-actions[bot]@users.noreply.github.com"
|
|
|
|
jobs:
|
|
build-documentation:
|
|
name: Build and deploy docs
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- uses: actions/setup-python@v2
|
|
with:
|
|
python-version: 3.x
|
|
|
|
- name: Install Python dependencies
|
|
run: pip install -r docs/requirements.txt
|
|
|
|
- name: Configure git user and email
|
|
run: |
|
|
git config --global user.name ${GIT_USER}
|
|
git config --global user.email ${GIT_EMAIL}
|
|
echo Name: $(git config --get user.name)
|
|
echo Email: $(git config --get user.email)
|
|
|
|
- name: Build and deploy docs with mike
|
|
run: |
|
|
cd docs
|
|
mike deploy nightly --push
|
|
# - name: Deploy to CF Pages
|
|
# run: |
|
|
# curl -X POST ${{ secrets.BOTTOM_CFP_HOOK }}
|