Skip to content

Commit

Permalink
Test publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
dvx76 committed Feb 5, 2024
1 parent aa46b07 commit 4975a3b
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
name: Publish to PyPI

on:
release:
types: [published]

jobs:
build:
name: Build distribution
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install flit
run: pip install flit
- name: Build package
run: flit build
- name: Store the distribution packages
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/

publish-to-pypi:
name: Publish Python distribution to PyPI
needs:
- build
runs-on: ubuntu-latest
environment:
name: test-pypi
url: https://test.pypi.org/p/skodaconnect
permissions:
id-token: write

steps:
- name: Download all the dists
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
1 change: 1 addition & 0 deletions skodaconnect/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
For more details and documentation, visit the github page at https://github.com/lendy007/skodaconnect
"""

__version__ = "1.3.9"

0 comments on commit 4975a3b

Please sign in to comment.