Skip to content

feat: Swap Progress Bar to Rich Click #30

feat: Swap Progress Bar to Rich Click

feat: Swap Progress Bar to Rich Click #30

Workflow file for this run

name: Release Please
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
# cancel in-progress runs that use the same workflow and branch
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
release-please:
name: Create Release PRs
runs-on: ubuntu-latest
# Only run release-please on pushes to main, not on PRs
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
permissions:
contents: write
issues: write
pull-requests: write
steps:
- name: Generate token
id: generate_token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.GH_ACTIONS_HELPER_APP_ID }}
private-key: ${{ secrets.GH_ACTIONS_HELPER_PK }}
- name: Release Please
uses: googleapis/release-please-action@v4
id: release
with:
manifest-file: ".release-please-manifest.json"
config-file: "release-please-config.json"
target-branch: "main"
token: ${{ steps.generate_token.outputs.token }}
outputs:
paths_released: ${{ steps.release.outputs.paths_released }}
release_created: ${{ steps.release.outputs.release_created }}
publish-pypi:
name: Build and publish to PyPI
runs-on: ubuntu-latest
needs: release-please
# Only publish when a release is actually created
if: needs.release-please.outputs.release_created == 'true'
environment:
name: pypi
url: https://pypi.org/p/py2rely
permissions:
id-token: write # Required for trusted publishing
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install build dependencies
run: |
python -m pip install -U pip
python -m pip install build
- name: Build package
run: python -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist