Skip to content

Commit

Permalink
feat(release): add release workflow (#60)
Browse files Browse the repository at this point in the history
* Also bump version to 1.1.0
  • Loading branch information
jonperron authored May 26, 2024
1 parent 898a784 commit 877b676
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
45 changes: 45 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Publish release on TestPypi

on:
release:
types: [released]

jobs:
release-build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: build release distributions
run: |
python -m pip install --upgrade pip
pip install build
python -m build
- name: upload windows dists
uses: actions/upload-artifact@v4
with:
name: release-dists
path: dist/

test-pypi-publish:
runs-on: ubuntu-latest
needs:
- release-build
permissions:
id-token: write

steps:
- name: Retrieve release distributions
uses: actions/download-artifact@v4
with:
name: release-dists
path: dist/

- name: Publish package distributions to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ classifiers = [
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.10",
]
version = "1.0.3"
version = "1.1.0"
requires-python = ">=3.10"
dependencies = [
"requests>=2.31, < 3",
Expand Down

0 comments on commit 877b676

Please sign in to comment.