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 #45 from ninoseki/update
Update
- Loading branch information
Showing
4 changed files
with
193 additions
and
147 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Publish package | ||
|
||
on: | ||
release: | ||
types: ["created"] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
|
||
- name: Setup Poetry | ||
uses: abatilo/actions-poetry@v2 | ||
with: | ||
poetry-version: 1.3.2 | ||
|
||
- name: Install plugin | ||
run: poetry self add "poetry-dynamic-versioning[plugin]" | ||
|
||
- name: Set PyPI token | ||
env: | ||
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} | ||
run: poetry config pypi-token.pypi $PYPI_TOKEN | ||
|
||
- name: Build and publish | ||
run: poetry publish --build |
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,5 +1,5 @@ | ||
import importlib.metadata as importlib_metadata | ||
import importlib.metadata | ||
|
||
from .main import get_abuse_contacts # noqa: F401 | ||
|
||
__version__ = importlib_metadata.version(__name__) | ||
__version__ = importlib.metadata.version(__name__) |
Oops, something went wrong.