Skip to content

Commit

Permalink
Merge pull request #45 from ninoseki/update
Browse files Browse the repository at this point in the history
Update
  • Loading branch information
ninoseki committed Feb 26, 2023
2 parents 717be0a + e158c0d commit ba615bb
Show file tree
Hide file tree
Showing 4 changed files with 193 additions and 147 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/publish.yml
@@ -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
4 changes: 2 additions & 2 deletions abuse_whois/__init__.py
@@ -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__)

0 comments on commit ba615bb

Please sign in to comment.