chore(deps): update modules/iso-codes digest to f6058f5 #4868
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright © Michal Čihař <[email protected]> | |
# | |
# SPDX-License-Identifier: MIT | |
name: Distribution | |
on: [push, pull_request] | |
jobs: | |
setup: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- uses: astral-sh/setup-uv@v3 | |
with: | |
enable-cache: true | |
cache-dependency-glob: '' | |
- name: Install dependencies | |
run: uv pip install --system -e .[dev] | |
- name: build sdist | |
run: python -m build | |
- name: twine | |
run: twine check dist/* | |
- name: Publish package | |
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && matrix.os == 'ubuntu-latest' | |
uses: pypa/[email protected] | |
with: | |
user: __token__ | |
password: ${{ secrets.pypi_password }} | |
release_github: | |
runs-on: ubuntu-24.04 | |
name: Create release on GitHub | |
permissions: | |
contents: write | |
if: ${{ startsWith(github.ref, 'refs/tags/') && github.repository == 'WeblateOrg/language-data' }} | |
steps: | |
- uses: ncipollo/release-action@v1 | |
with: | |
generateReleaseNotes: true |