forked from misiektoja/spotify_profile_monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (27 loc) · 1005 Bytes
/
Copy pathdocs.yml
File metadata and controls
30 lines (27 loc) · 1005 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Update GitHub Pages Documentation
on:
# Manual refresh: Actions tab -> "Update GitHub Pages Documentation" -> Run workflow
workflow_dispatch:
# Auto refresh after a successful package publish
workflow_run:
workflows: ["Publish to PyPI"]
types: [completed]
permissions: {}
jobs:
deploy:
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
# Only the deploy job needs to push the built site to the gh-pages branch.
permissions:
contents: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
fetch-depth: 0
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7
with:
python-version: '3.x'
- name: Install docs dependencies
run: pip install -r docs/requirements.txt
- name: Build and deploy to GitHub Pages
run: mkdocs gh-deploy --force --strict