Skip to content

Commit

Permalink
Merge pull request #42 from lapp0/foo
Browse files Browse the repository at this point in the history
doit
  • Loading branch information
lapp0 authored Jul 20, 2024
2 parents 643404f + eafbb02 commit 990b400
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/publish_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,13 @@ jobs:
restore-keys: |
mkdocs-material-
- run: pip install -r requirements-doc.txt
- name: Build documentation
env:
GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }}
run: mike deploy --push --update-aliases ${{ steps.git.outputs.tag }} latest
- name: Determine version tag
id: get-tag
- name: Set up Git
run: |
if [ -n "${{ github.event.ref_type }}" ] && [ "${{ github.event.ref_type }}" == "tag" ]; then
echo "version_tag=${{ github.ref_name }}" >> $GITHUB_ENV
echo "alias=stable" >> $GITHUB_ENV
else
echo "version_tag=latest" >> $GITHUB_ENV
echo "alias=main" >> $GITHUB_ENV
git config user.name ${{ github.actor }}
git config user.email ${{ github.actor }}@users.noreply.github.com
- name: Build documentation
env:
GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }}
run: mike deploy --push --update-aliases ${{ env.version_tag }} ${{ env.alias }}
run: |
mike deploy --push --update-aliases --force $version latest
mike set-default --push --force latest

0 comments on commit 990b400

Please sign in to comment.