Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Dennis Meister <dennis.meister@bosch.com>
  • Loading branch information
dennismeister93 committed Jun 10, 2024
1 parent 6289f36 commit 211b258
Showing 1 changed file with 29 additions and 26 deletions.
55 changes: 29 additions & 26 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,32 +43,35 @@ jobs:
LICENSE
NOTICE.md
# publish-to-pypi:
# name: Publish Python 🐍 distribution 📦 to PyPI
# needs:
# - build
# runs-on: ubuntu-22.04
# environment:
# name: pypi
# url: https://pypi.org/p/velocitas-lib
# id-token: write
publish-to-pypi:
name: Publish Python 🐍 distribution 📦 to PyPI
needs:
- build
runs-on: ubuntu-22.04
environment:
name: pypi
url: https://pypi.org/p/velocitas-lib

permissions:
contents: write
id-token: write
packages: read

# steps:
# - name: Download dists folder
# 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
steps:
- name: Download dists folder
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

github-release:
name: >-
Sign the Python 🐍 distribution 📦 with Sigstore
and upload them to GitHub Release
needs:
- build
# - publish-to-pypi
- publish-to-pypi
runs-on: ubuntu-22.04

permissions:
Expand All @@ -81,21 +84,21 @@ jobs:
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: python-package-distributions/
path: python-package/
- name: Sign the dists with Sigstore
uses: sigstore/gh-action-sigstore-python@v2.1.1
with:
inputs: >-
./python-package-distributions/dist/*.tar.gz
./python-package-distributions/dist/*.whl
./python-package/dist/*.tar.gz
./python-package/dist/*.whl
- name: Create release
id: create_release
uses: softprops/action-gh-release@v2
with:
draft: true
tag_name: v0.0.5-test
tag_name: v0.0.6-test
fail_on_unmatched_files: true
files: |
dist/**
LICENSE
NOTICE.md
python-package/dist/**
python-package/LICENSE
python-package/NOTICE.md

0 comments on commit 211b258

Please sign in to comment.