Skip to content

Commit

Permalink
Publish to final-preview directory
Browse files Browse the repository at this point in the history
  • Loading branch information
cofinoa committed Dec 2, 2024
1 parent ac3d402 commit 3d0bdb4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build_and_deploy_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ jobs:
# Ensure .nojekyll exists
[ ! -f .nojekyll ] && touch .nojekyll
# Determine target directory based on the event type
if [[ ${{ github.event_name }} == 'release' ]]; then
if [[ ${{ github.event_name }} == 'workflow_dispatch' && ${{ github.event.inputs.set_final_tag }} == 'true' ]]; then
echo "TARGET_DIR=final-preview/${GITHUB_REF_NAME}" >> $GITHUB_ENV
elif [[ ${{ github.event_name }} == 'release' ]]; then
echo "TARGET_DIR=release/${GITHUB_REF_NAME}" >> $GITHUB_ENV
elif [[ ${{ github.event_name }} == 'pull_request' ]]; then
PR_NUMBER=${{ github.event.pull_request.number }}
Expand Down

0 comments on commit 3d0bdb4

Please sign in to comment.