Skip to content

Commit

Permalink
Merge pull request #46 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 a1ff8ed + 785e17b commit 4c2c127
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/publish_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,17 @@ jobs:
run: |
git config user.name ${{ github.actor }}
git config user.email ${{ github.actor }}@users.noreply.github.com
- name: Get latest tag or commit SHA
id: git
run: |
TAG=$(git describe --tags --abbrev=0 || echo "no-tags")
if [ "$TAG" = "no-tags" ]; then
TAG="main"
fi
echo "::set-output name=tag::$TAG"
- name: Build documentation
env:
GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }}
run: |
mike deploy --update-aliases --push --branch ${{ steps.git.outputs.tag }} stable
mike set-default --push --force stable
mike deploy --update-aliases --push --branch ${{ steps.git.outputs.tag }} unstable
mike set-default --push --force unstable

0 comments on commit 4c2c127

Please sign in to comment.