Skip to content

Bump version

Bump version #48

Workflow file for this run

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@v3
- 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@v3
- 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 }}