Skip to content

Commit

Permalink
Merge pull request #161 from aai-institute/feature/update-pypi-publis…
Browse files Browse the repository at this point in the history
…hing

Feature/update pypi publishing
  • Loading branch information
samuelburbulla authored Aug 20, 2024
2 parents a99b6c1 + 6d942f7 commit 1f21ec2
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
concurrency:
group: publish
environment: release
permissions:
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -21,16 +22,9 @@ jobs:
- name: Install
run: |
pip install ".[dev]"
- name: Get Current Version
run: |
export CURRENT_VERSION=$(bump-my-version show current_version)
echo CURRENT_VERSION=$CURRENT_VERSION >> $GITHUB_ENV
shell: bash
- name: Build and publish to PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
- name: Build package
run: |
python3 -m pip install --upgrade build twine
python3 -m build
python3 -m twine upload --verbose --non-interactive dist/*
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 1f21ec2

Please sign in to comment.