Skip to content

Commit

Permalink
feat(release): add .pyz support through shiv. implements #109
Browse files Browse the repository at this point in the history
  • Loading branch information
Jguer committed Nov 22, 2021
1 parent 0c6857e commit 2bd8013
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:

release:
runs-on: ubuntu-latest
needs: pypi
continue-on-error: true
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
steps:
Expand Down Expand Up @@ -58,6 +59,21 @@ jobs:
uses: docker://aevea/release-notary:0.9.4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Make zipapp artifact
run: |
pip install shiv ggshield
shiv -c ggshield --reproducible --compile-pyc --compressed -o ggshield.pyz ggshield
shell: bash
- name: Upload .pyz
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./ggshield.pyz
asset_name: ggshield.pyz
asset_content_type: application/zip

push_to_docker_hub:
name: Push Docker image to Docker Hub
Expand Down

0 comments on commit 2bd8013

Please sign in to comment.