Skip to content

fix ci job genproto deleting py.typed #170

fix ci job genproto deleting py.typed

fix ci job genproto deleting py.typed #170

Workflow file for this run

name: Release
on:
workflow_dispatch:
push:
branches:
- master
jobs:
release:
permissions:
id-token: write
contents: write
runs-on: ubuntu-latest
# disallows two or more release jobs to run in parallel
concurrency: release
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Configure python and git user
run: |
make deps
git config --global user.name 'Yandex.Cloud Bot'
git config --global user.email 'ycloud-bot@yandex.ru'
echo "PYTHONPATH=$PYTHONPATH:$(pwd)" >> $GITHUB_ENV
- name: Python Semantic Release
id: release
uses: python-semantic-release/python-semantic-release@v9.7.2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
# NOTE: DO NOT wrap the conditional in ${{ }} as it will always evaluate to true.
# See https://github.com/actions/runner/issues/1173
if: steps.release.outputs.released == 'true'
with:
password: ${{ secrets.PYPI_TOKEN }}
- name: Publish package distributions to GitHub Releases
uses: python-semantic-release/upload-to-gh-release@main
if: steps.release.outputs.released == 'true'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}