Skip to content

Commit

Permalink
fix: release pipeline (#75)
Browse files Browse the repository at this point in the history
* fix: release pipeline

* fix: upgrade to 3.1.2
  • Loading branch information
jpantos authored Jan 9, 2025
1 parent 1cf5bdd commit 49abcb6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 51 deletions.
53 changes: 4 additions & 49 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ jobs:
# Copy the file
cp tmp/wheel/*.dist-info/METADATA tmp/sdist/*/PKG-INFO
# Tar the sdist again
tar -czf dist/$(ls dist | grep .tar.gz) -C tmp/sdist/ .
cd tmp/sdist/*
tar -czf ../../../dist/$(basename ../../../dist/*.tar.gz) *
cd ../../..
# Remove the temporary directories
rm -rf tmp
Expand Down Expand Up @@ -130,51 +132,4 @@ jobs:
- uses: sigstore/[email protected]
with:
inputs: release/*

- uses: actions/upload-artifact@v4
with:
name: signed-build
path: release/*.whl

- name: Upload release assets
uses: svenstaro/upload-release-action@v2
with:
file: "./release/*"
file_glob: true
overwrite: true
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.event.release.tag_name }}

- uses: robinraju/[email protected]
name: Download tarball
with:
tag: ${{ github.event.release.tag_name }}
tarBall: true
zipBall: true
fileName: '*'
out-file-path: external-release
preRelease: ${{ github.event.release.prerelease }}
token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}

- name: List directory
run: |
ls -lha external-release
# Remove all the files in external-release that are also present in release
for file in $(ls release); do
rm -f external-release/$file
done
- uses: sigstore/[email protected]
with:
inputs: external-release/*

- name: Upload signed source code
uses: ncipollo/release-action@v1
with:
artifacts: "./external-release/*"
artifactErrorsFailBuild: true
allowUpdates: true
tag: ${{ github.event.release.tag_name }}
token: ${{ secrets.GITHUB_TOKEN }}

release-signing-artifacts: true
1 change: 1 addition & 0 deletions .github/workflows/sonar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
shared:
if: github.repository == 'pantos-io/client-library'
uses: pantos-io/ci-workflows/.github/workflows/sonar.yml@v1
secrets: inherit

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ One of the most significant advantages of using Pantos is that the protocol has

#### Python Version

The Pantos Client Library supports **Python 3.10** or higher. Ensure that you have the correct Python version installed before the installation steps. You can download the latest version of Python from the official [Python website](https://www.python.org/downloads/).
The Pantos Client Library supports **Python 3.12** or higher. Ensure that you have the correct Python version installed before the installation steps. You can download the latest version of Python from the official [Python website](https://www.python.org/downloads/).



Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pantos-client-library"
version = "3.1.1"
version = "3.1.2"
description = "Client library for engaging with the Pantos system"
authors = ["Pantos GmbH <[email protected]>"]
license = "GPL-3.0-only"
Expand Down

0 comments on commit 49abcb6

Please sign in to comment.