Skip to content

Commit

Permalink
pypi publish test
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTechromancer committed Aug 22, 2022
1 parent 73bde01 commit 9c450e4
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 36 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/pypi.yml

This file was deleted.

28 changes: 26 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Python 3
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.9
Expand All @@ -22,3 +22,27 @@ jobs:
files: ./cov.xml
fail_ci_if_error: true
verbose: true
pypi:
runs-on: ubuntu-latest
needs: test
if: github.event_name == 'push' && github.ref == 'refs/heads/stable'
continue-on-error: true
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
9 changes: 6 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "bbot"
version = "1.0.2"
version = "1.0.3"
description = "OSINT automation for hackers."
authors = ["TheTechromancer"]
license = "GPL-3.0"
Expand Down Expand Up @@ -36,10 +36,13 @@ black = "^22.3.0"
pytest-cov = "^3.0.0"

[build-system]
requires = ["poetry-core>=1.0.0", "setuptools>=45", "setuptools_scm[toml]>=6.2"]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
build-backend = "poetry.core.masonry.api"

[tool.black]
line-length = 119

[tool.setuptools_scm]
[tool.poetry-dynamic-versioning]
enable = true
metadata = false
format = 'v1.0.3.{distance}'

0 comments on commit 9c450e4

Please sign in to comment.