Skip to content
This repository has been archived by the owner on Jul 6, 2024. It is now read-only.

chore(deps): update dependency boto3-stubs to v1.34.9 (#5) #13

chore(deps): update dependency boto3-stubs to v1.34.9 (#5)

chore(deps): update dependency boto3-stubs to v1.34.9 (#5) #13

Workflow file for this run

name: publish
on:
push:
branches:
- main
workflow_dispatch:
inputs:
pypi_release_only:
description: 'Whether to only release to PyPI'
required: false
default: "false"
permissions:
id-token: write
contents: write
pull-requests: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: google-github-actions/release-please-action@v4
if: |
github.event_name != 'workflow_dispatch' ||
inputs.pypi_release_only != 'true'
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: python
- name: Set up Python for Poetry
if: |
inputs.pypi_release_only == 'true' ||
steps.release.outputs.release_created == 'true'
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install poetry
if: |
inputs.pypi_release_only == 'true' ||
steps.release.outputs.release_created == 'true'
run: |
python -m pip install -U poetry pip
- name: Set up Python
if: |
inputs.pypi_release_only == 'true' ||
steps.release.outputs.release_created == 'true'
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "poetry"
- name: Build package
if: |
inputs.pypi_release_only == 'true' ||
steps.release.outputs.release_created == 'true'
run: |
poetry install -n
poetry build
# https://docs.pypi.org/trusted-publishers/using-a-publisher/
- name: Publish package distributions to PyPI
if: |
inputs.pypi_release_only == 'true' ||
steps.release.outputs.release_created == 'true'
uses: pypa/gh-action-pypi-publish@release/v1