Skip to content

test: fix/simplify --all cli test to work with new languages codes … #104

test: fix/simplify --all cli test to work with new languages codes …

test: fix/simplify --all cli test to work with new languages codes … #104

Workflow file for this run

name: Release
on:
push:
branches:
- main
jobs:
release-please:
runs-on: ubuntu-latest
permissions:
# For release-please:
pull-requests: write
contents: write
# IMPORTANT: this permission is mandatory for trusted publishing
# https://docs.pypi.org/trusted-publishers/using-a-publisher/
id-token: write
environment:
# Environment to narrow down the publish scope
name: production
url: https://pypi.org/project/gTTS/${{ steps.release.outputs.tag_name }}/
steps:
- name: Release Please
uses: google-github-actions/release-please-action@v4
id: release
# Only do the rest (package build/push) if a release was created
- name: Checkout
if: ${{ steps.release.outputs.release_created }}
uses: actions/checkout@v4
- name: Setup Python
if: ${{ steps.release.outputs.release_created }}
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install build dependencies
if: ${{ steps.release.outputs.release_created }}
run: |
pip install --upgrade pip
pip install build
- name: Build package
if: ${{ steps.release.outputs.release_created }}
run: python -m build
- name: Publish package
if: ${{ steps.release.outputs.release_created }}
uses: pypa/gh-action-pypi-publish@8a08d616893759ef8e1aa1f2785787c0b97e20d6
# References:
# * Release Please:
# https://github.com/googleapis/release-please
# * Release Please (GitHub Action)
# https://github.com/google-github-actions/release-please-action
# * Conventional Commits:
# https://www.conventionalcommits.org/