Skip to content

Commit

Permalink
alllow deploy docs when triggered on demand (vectorch-ai#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
guocuimi authored Jun 21, 2024
1 parent ed0c74e commit e087247
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build_wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,14 @@ jobs:
run: ls -lha dist

- name: Create release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: dist/scalellm-*.whl
tag_name: ${{ inputs.tag }}
draft: true
prerelease: true
generate_release_notes: true
draft: false
prerelease: false
make_latest: true

commit_whl_index:
needs: build_wheel
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/publish_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,11 @@ jobs:

# Deployment job
deploy:
# only deploy on new commits
if: github.event_name == 'push'
# only deploy on new commits to main, or when triggered on-demand
if: |
github.event_name == 'push' ||
github.event_name == 'workflow_call' ||
github.event_name == 'workflow_dispatch'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand Down

0 comments on commit e087247

Please sign in to comment.