refactor: exposure extraction context (#300) #194
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: master | |
on: | |
push: | |
branches: | |
- master | |
release: | |
types: | |
- released | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.8" | |
- name: Install uv | |
run: pipx install uv | |
- name: Dependencies | |
run: make dependencies | |
- name: Build | |
env: | |
SETUPTOOLS_SCM_PRETEND_VERSION: ${{ github.event.release.tag_name }} | |
run: make build | |
- name: Publish a Python distribution to PyPI | |
if: github.event_name == 'release' | |
uses: pypa/gh-action-pypi-publish@release/v1 |