Skip to content

Commit

Permalink
fake gh release job
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonieFierz committed Jan 3, 2025
1 parent b380567 commit 39eaa50
Showing 1 changed file with 23 additions and 10 deletions.
33 changes: 23 additions & 10 deletions .github/workflows/pyhton.build_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ jobs:
pattern: py_*_*_build
- name: check artifacts
run: |
cd python-wrapper
cd python-wrapper/dist
ls
#- name: Publish package distributions to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
Expand All @@ -192,28 +192,40 @@ jobs:
- py3p8_linux_sdist
- deploy_pypi
runs-on: ubuntu-22.04
defaults:
run:
working-directory: ./python-wrapper
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Download artifacts
- name: download python source dist artifacts
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
with:
path: python-wrapper/dist
merge-multiple: true
name: py_source_dist
- name: download python build artifacts
uses: actions/download-artifact@v4
with:
path: python-wrapper/dist
merge-multiple: true
pattern: py_*_*_build
- name: Create GitHub Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
if [[ "$(gh release view '${{ github.ref_name }}' 2>&1)" == "release not found" ]]; then
gh release create '${{ github.ref_name }}' --repo '${{ github.repository }}' --notes ""
fi
echo ${{ github.ref_name }}
# if [[ "$(gh release view '${{ github.ref_name }}' 2>&1)" == "release not found" ]]; then
# gh release create '${{ github.ref_name }}' --repo '${{ github.repository }}' --notes ""
# fi
- name: Upload artifacts to GitHub Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Upload release artifacts before the signing, such that artifacts are still uploaded if signing fails
run: |
gh release upload '${{ github.ref_name }}' dist/** --repo '${{ github.repository }}'
ls -al dist/**
# gh release upload '${{ github.ref_name }}' dist/** --repo '${{ github.repository }}'
- name: Sign the dists with Sigstore
uses: sigstore/gh-action-sigstore-python@f514d46b907ebcd5bedc05145c03b69c1edd8b46
with:
Expand All @@ -225,4 +237,5 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# upload sigstore-produced signatures and certificates from dist
run: |
gh release upload '${{ github.ref_name }}' dist/*.sigstore.json --repo '${{ github.repository }}'
ls -al dist/*.sigstore.json
# gh release upload '${{ github.ref_name }}' dist/*.sigstore.json --repo '${{ github.repository }}'

0 comments on commit 39eaa50

Please sign in to comment.