Fix branch name in test.yml workflow #1
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
name: publish-hatch-protobuf | |
on: | |
push: | |
tags: | |
- v* | |
concurrency: | |
group: publish-${{ github.head_ref }} | |
jobs: | |
build: | |
name: Build wheels and source distribution | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
# version shouldn't matter that much, but best to be consistent | |
python-version: 3.12 | |
- name: Install build dependencies | |
run: python -m pip install --upgrade hatch | |
- name: Build | |
run: python -m hatch build | |
- uses: actions/upload-artifact@v4 | |
with: | |
path: dist/ | |
if-no-files-found: error | |
publish: | |
name: Publish release | |
needs: | |
- build | |
runs-on: ubuntu-latest | |
environment: release | |
permissions: | |
id-token: write | |
steps: | |
- uses: actions/download-artifact@v4 | |
with: | |
path: dist | |
- name: Push package distributions to PyPI | |
uses: pypa/[email protected] |