Skip to content

Commit

Permalink
Fix MkDocs workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fizruk committed Dec 11, 2023
1 parent 2662259 commit 5b0fb98
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: MKDocs
on:
push:
branches: [master, update-appearance]
tags: [v*]
tags: [arXiv-*, v*, CPP-2024]
paths:
- .github/workflows/mkdocs.yml
- mkdocs.yml
Expand Down Expand Up @@ -40,19 +40,19 @@ jobs:
chmod: 0755

- name: 🔨 Install MkDocs Material and mike
run: pip install -r docs/requirements.txt
run: pip install -r requirements.txt

- name: ⚙️ Configure Git user
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
- name: 🚀 Deploy with mike (${{ github.ref_name }}, latest)
if: ${{ github.ref_name != 'master' }}
if: ${{ startsWith(github.ref, 'refs/tags/') }}
run: |
mike deploy --rebase --push --update-aliases --config-file docs/mkdocs.yml ${{ github.ref_name }} latest
mike deploy --push --update-aliases ${{ github.ref_name }} latest
- name: 🚀 Deploy with mike (${{ github.ref_name }})
if: ${{ github.ref_name == 'master' }}
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
run: |
mike deploy --rebase --push --config-file docs/mkdocs.yml ${{ github.ref_name }}
mike deploy --push ${{ github.ref_name }}

0 comments on commit 5b0fb98

Please sign in to comment.