-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
only release on tags, add PyPI metadata, update readme
- Loading branch information
1 parent
2a26106
commit 993417e
Showing
3 changed files
with
57 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,31 @@ | ||
name: Build, Release to PyPI | ||
name: Release to PyPI | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- "**" | ||
# branches: [ "main" ] | ||
tags: [ "v**" ] | ||
# pull_request: | ||
# branches: | ||
# - "**" | ||
jobs: | ||
build: | ||
release: | ||
name: Release | ||
if: startsWith(github.ref, 'refs/tags/') | ||
needs: test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
- name: Install | ||
run: pip install -e . wheel twine | ||
- name: Build | ||
cache: "pip" | ||
- name: Install release deps | ||
run: pip install utz[setup] twine wheel | ||
- name: Install dvc-utils | ||
run: pip install -e . | ||
- name: Build release | ||
run: python setup.py sdist bdist_wheel | ||
- name: Publish to PyPI | ||
run: twine upload dist/* | ||
- name: Publish release | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} | ||
run: twine upload dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters