Skip to content

Release

Release #220

Workflow file for this run

name: Release
on:
workflow_dispatch:
schedule:
- cron: "00 08 * * 1" # 08:00 UTC every Monday, which is 11:00 AM Moscow time
jobs:
release:
permissions:
id-token: write
contents: write
runs-on: ubuntu-22.04
# disallows two or more release jobs to run in parallel
concurrency: release
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
# Install a specific version of uv.
version: "0.5.8"
enable-cache: true
- name: Set up Python
uses: actions/[email protected]
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 '[email protected]'
- name: Python Semantic Release
id: release
uses: python-semantic-release/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Build yandexcloud
run: |
make build
- name: Publish package distributions to PyPI
uses: pypa/[email protected]
# 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/[email protected]
if: steps.release.outputs.released == 'true'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}