build(deps): bump the gomod group with 13 updates #26
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: docs | |
on: | |
push: | |
tags: | |
- v* | |
branches: | |
- master | |
- v2 | |
pull_request: | |
jobs: | |
check-docs: | |
if: ${{ github.event_name == 'pull_request' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.x | |
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV | |
- uses: actions/cache@v4 | |
with: | |
key: mkdocs-material-${{ env.cache_id }} | |
path: .cache | |
restore-keys: | | |
mkdocs-material- | |
- run: pip install mkdocs-material[imaging] mike | |
- run: mkdocs build -s | |
deploy-docs: | |
if: ${{ github.event_name != 'pull_request' }} | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: '0' | |
- uses: webfactory/ssh-agent@v0.9.0 | |
with: | |
ssh-private-key: ${{ secrets.GH_PAGES_REPO_KEY }} | |
- name: Configure Git | |
run: | | |
git config user.name github-actions[bot] | |
git config user.email 41898282+github-actions[bot]@users.noreply.github.com | |
# Deployed docs are in another repo for nice URLs | |
git remote add gh-pages git@github.com:piraeusdatastore/docs.git | |
git fetch gh-pages gh-pages --depth=1 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.x | |
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV | |
- uses: actions/cache@v4 | |
with: | |
key: mkdocs-material-${{ env.cache_id }} | |
path: .cache | |
restore-keys: | | |
mkdocs-material- | |
- run: pip install mkdocs-material[imaging] mike | |
- name: Deploy latest docs | |
if: ${{ github.ref_type == 'branch' }} | |
run: mike deploy -u -r gh-pages -p v2 latest | |
- name: Deploy release docs | |
if: ${{ github.ref_type == 'tag' }} | |
run: mike deploy -u -r gh-pages -p ${{ github.ref_name }} stable |