diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..dcfed69 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,24 @@ +name: Build distribution + +on: + release: + types: [created] + +jobs: + test: + uses: ./.github/workflows/test.yml + deploy: + needs: [test, lint] + name: Deploy to PyPI + runs-on: ubuntu-latest + permissions: + id-token: write + steps: + - uses: actions/checkout@v4 + - name: Install uv + uses: astral-sh/setup-uv@v5 + - run: echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV + - run: uv build + - uses: pypa/gh-action-pypi-publish@release/v1 + with: + packages-dir: ./dist