-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(GitHubWorkflows): adds publish and adjust job names to be more rea…
…dable
- Loading branch information
Showing
2 changed files
with
26 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 |
---|---|---|
|
@@ -6,7 +6,7 @@ on: | |
- release/* | ||
|
||
jobs: | ||
deploy: | ||
test-publish: | ||
runs-on: ubuntu-latest | ||
env: | ||
POETRY_HOME: /opt/poetry | ||
|
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,25 @@ | ||
name: Publish to PyPI | ||
on: | ||
release: | ||
types: [published] | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
env: | ||
POETRY_HOME: /opt/poetry | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- name: Install poetry | ||
run: | | ||
wget https://raw.githubusercontent.com/python-poetry/install.python-poetry.org/d62875fc05fb20062175cd14d19a96dbefa48640/install-poetry.py | ||
python install-poetry.py --version 1.8.3 | ||
- name: Install dependencies | ||
run: | | ||
$POETRY_HOME/bin/poetry install | ||
- name: Configure poetry for PyPI repository | ||
run: | | ||
$POETRY_HOME/bin/poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }} | ||
- name: Build and publish package | ||
run: | | ||
$POETRY_HOME/bin/poetry publish --build |