Bump version #56
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: Release | |
on: { push: { tags: [v*] } } | |
jobs: | |
pypi: | |
name: Package a PyPI release | |
if: github.repository_owner == 'friendlyanon' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: { python-version: "3.8" } | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install setuptools wheel twine | |
- name: Build and publish | |
working-directory: package | |
env: | |
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | |
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | |
run: | | |
python setup.py sdist bdist_wheel | |
twine upload dist/* | |
release: | |
name: Package a release | |
if: github.repository_owner == 'friendlyanon' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: { python-version: "3.8" } | |
- name: Package | |
run: python -m zipapp cmake-init -p "/usr/bin/env python3" | |
- name: Get version | |
id: version | |
run: echo "version=$(python cmake-init.pyz --version)" >> $GITHUB_OUTPUT | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
env: { GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" } | |
with: | |
files: cmake-init.pyz | |
prerelease: true | |
body: Release of version ${{ steps.version.outputs.version }} |