-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from coqui-ai/release-ci
Upload to PyPI on release
- Loading branch information
Showing
4 changed files
with
41 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: PyPI publish on release | ||
on: | ||
release: | ||
types: [published] | ||
defaults: | ||
run: | ||
shell: | ||
bash | ||
jobs: | ||
build-package: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Verify tag matches version | ||
run: | | ||
set -ex | ||
version=$(cat VERSION) | ||
tag="${GITHUB_REF/refs\/tags\/}" | ||
if [[ "v$version" != "$tag" ]]; then | ||
exit 1 | ||
fi | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
- run: | | ||
python -m pip install -U pip setuptools twine | ||
- run: | | ||
python setup.py sdist | ||
- name: Setup PyPI config | ||
run: | | ||
cat << EOF > ~/.pypirc | ||
[pypi] | ||
username=__token__ | ||
password=${{ secrets.PYPI_TOKEN }} | ||
EOF | ||
- run: | | ||
twine upload --repository testpypi dist/*.tar.gz |
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,3 +1,4 @@ | ||
include VERSION | ||
include README.md | ||
include LICENSE.txt | ||
include requirements*.txt | ||
|
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
0.0.7 |
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