Skip to content

Commit

Permalink
update nightly build
Browse files Browse the repository at this point in the history
  • Loading branch information
kaizhang committed Dec 11, 2023
1 parent c22c754 commit d063d48
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@ jobs:
if : ${{ needs.check-for-new-commits.outputs.NEW_COMMITS == 'true' }}
uses: kaizhang/SnapATAC2/.github/workflows/wheels.yml@main
with:
wheel: 'true'
wheel: 'true'
nightly: 'true'
20 changes: 18 additions & 2 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# It will build a Python project using CIBW, then upload the wheel and source
# distribution to PyPI.
name: build-wheels

on:
push:

Expand All @@ -11,6 +10,9 @@ on:
wheel:
required: false
type: string
nightly:
required: false
type: string
jobs:
build_wheels:
name: Wheel on ${{ matrix.os }} for ${{ matrix.python_version }}
Expand Down Expand Up @@ -94,4 +96,18 @@ jobs:
- uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.pypi_password }}
password: ${{ secrets.pypi_password }}

- name: Create nightly release
uses: viperproject/create-nightly-release@v1
if: inputs.nightly
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: nightly
release_name: Nightly Release
keep_num: 0
keep_tags: false
body_path: |
- *.whl
- *.tar.gz

0 comments on commit d063d48

Please sign in to comment.