Skip to content

Commit

Permalink
feat(release): add prerelease job
Browse files Browse the repository at this point in the history
  • Loading branch information
jonperron committed May 26, 2024
1 parent 6db52e6 commit 21bbbb0
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
48 changes: 48 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Publish release on TestPypi

on:
release:
types: [prereleased]

jobs:
pre-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
with:
repository-url: https://test.pypi.org/legacy/
package_name: python-navitia-client
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 = "0.0.1"
version = "1.0.1"
requires-python = ">=3.10"
dependencies = [
"requests>=2.31, < 3",
Expand Down

0 comments on commit 21bbbb0

Please sign in to comment.