Generate Release #3
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: Generate Release | |
on: | |
workflow_dispatch: | |
inputs: | |
pypy_base: | |
description: 'Comma seperated base version: 2.7,3.9,3.10' | |
required: true | |
pypy_version: | |
description: 'PyPy version to download: 7.3.13' | |
required: true | |
jobs: | |
generate-release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
env: | |
TAG: "${{ github.event.inputs.pypy_version }}-${{ github.event.inputs.pypy_base }}" | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Release Info | |
run: | | |
echo "::notice title=PYPY_BASE::${{ github.event.inputs.pypy_base }}" | |
echo "::notice title=PYPY_VERSION:: ${{ github.event.inputs.pypy_version }}" | |
- name: Prep Release | |
run: python .github/release.py | |
env: | |
PYPY_BASE: ${{ github.event.inputs.pypy_base }} | |
PYPY_VERSION: ${{ github.event.inputs.pypy_version }} | |
- name: Generate Checksums | |
run: | | |
ls -la *.tar.bz2* | |
sha256sum *.tar.bz2 > checksums.sha256 | |
gpg --no-tty --keyserver hkps://keys.openpgp.org --auto-key-locate keyserver --locate-keys releases@cyberjake.xyz | |
find . -iname "*.tar.bz2" -type f -exec bash -c "echo verifying {}; gpg --verify {}.sig {} " \; | |
- name: Create tag | |
uses: actions/github-script@v7.0.1 | |
with: | |
script: | | |
github.rest.git.createRef({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
ref: 'refs/tags/${{ env.TAG }}', | |
sha: context.sha | |
}) | |
- name: Release | |
uses: crazy-max/ghaction-github-release@v2 | |
with: | |
draft: true | |
tag_name: ${{ env.TAG }} | |
files: | | |
*.tar.bz2 | |
*.tar.bz2.sig | |
checksums.sha256 |