Skip to content

Commit

Permalink
Use most recent tag to deploy docs on manual dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
CBroz1 committed Jul 12, 2024
1 parent d56763b commit e4a19bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Publish docs
on:
push:
tags: # See PEP 440 for valid version format
- "*.*.*" # For docs bump, use X.X.XaX
- "*.*.*" # For docs bump, use workflow_dispatch
branches:
- test_branch
workflow_dispatch: # Manually trigger with 'Run workflow' button
Expand Down Expand Up @@ -40,8 +40,8 @@ jobs:
git config user.name 'github-actions[bot]' && git config user.email 'github-actions[bot]@users.noreply.github.com'
- name: Deploy
run: |
FULL_VERSION=${{ github.ref_name }}
run: | # github.ref_name is branch name if dispatch
FULL_VERSION=${{ git describe --tags --abbrev=0 }}
export MAJOR_VERSION=${FULL_VERSION:0:3}
echo "OWNER: ${REPO_OWNER}. BUILD: ${MAJOR_VERSION}"
bash ./docs/build-docs.sh push $REPO_OWNER
Expand Down

0 comments on commit e4a19bb

Please sign in to comment.