Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alllow deploy docs when triggered on demand #253

Merged
merged 1 commit into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading