SplitGuides v0.9.5 #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build zipapp | |
on: | |
release: | |
types: [published] | |
jobs: | |
build: | |
name: Build zipapp | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Install the module | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install . | |
- name: Build the zipapp | |
run: | | |
python zipapp/build_zipapps.py | |
- name: Store the built zipapps | |
uses: actions/upload-artifact@v4 | |
with: | |
name: splitguides-zipapp | |
path: zipapp/dist/*.pyz | |
add-to-github-release: | |
name: >- | |
Sign the zipapp with Sigstore | |
and upload it to GitHub Release | |
needs: | |
- build | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write # IMPORTANT: mandatory for making GitHub Releases | |
id-token: write # IMPORTANT: mandatory for sigstore | |
steps: | |
- name: Download the zipapp | |
uses: actions/download-artifact@v4 | |
with: | |
name: splitguides-zipapp | |
path: zipapp/dist/ | |
- name: Sign the zipapp with Sigstore | |
uses: sigstore/[email protected] | |
with: | |
release-signing-artifacts: false | |
inputs: >- | |
./zipapp/dist/*.pyz | |
- name: Upload artifact signature to GitHub Release | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
# Upload to GitHub Release using the `gh` CLI. | |
# `dist/` contains the built packages, and the | |
# sigstore-produced signatures and certificates. | |
run: >- | |
gh release upload | |
'${{ github.ref_name }}' zipapp/dist/** | |
--repo '${{ github.repository }}' |