@@ -17,26 +17,13 @@ jobs:
1717 - uses : actions/checkout@v4
1818 with :
1919 fetch-depth : 0
20- - name : Install uv
21- uses : astral-sh/setup-uv@v5
22- with :
23- enable-cache : true
24- cache-dependency-glob : " uv.lock"
25- - name : Create venv
26- run : uv venv
27- - name : Install build dependencies
28- run : uv pip install setuptools wheel build
29- - name : Build the package
30- run : uv run python -m build
31- - name : Store the distribution packages
32- uses : actions/upload-artifact@v4
33- with :
34- name : python-packages
35- path : dist/
20+ - if : github.repository == 'chrishas35/simplefin-python-test'
21+ run : sed -i -e 's/name = "simplefin"/name = "simplefin-test"/g' pyproject.toml
22+ - uses : hynek/build-and-inspect-python-package@v2
3623
3724 publish-to-pypi :
3825 name : Publish to PyPI
39- if : startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
26+ if : github.repository == 'chrishas35/simplefin-python' && startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
4027 runs-on : ubuntu-24.04
4128 needs : [build]
4229 environment :
4835 - name : Download distribution packages
4936 uses : actions/download-artifact@v4
5037 with :
51- name : python-packages
52- path : dist/
38+ name : Packages
39+ path : dist
5340 - name : Publish to PyPI
5441 uses : pypa/gh-action-pypi-publish@release/v1
5542 with :
@@ -68,22 +55,22 @@ jobs:
6855 - name : Download distribution packages
6956 uses : actions/download-artifact@v4
7057 with :
71- name : python-packages
72- path : dist/
58+ name : Packages
59+ path : dist
7360 - name : Sign the dists with Sigstore
7461 uses : sigstore/gh-action-sigstore-python@v3.0.0
7562 with :
7663 inputs : >-
7764 ./dist/*.tar.gz
7865 ./dist/*.whl
79- - name : Create GitHub Release
80- env :
81- GITHUB_TOKEN : ${{ github.token }}
82- run : >-
83- gh release create
84- "$GITHUB_REF_NAME"
85- --repo "$GITHUB_REPOSITORY"
86- --notes ""
66+ # - name: Create GitHub Release
67+ # env:
68+ # GITHUB_TOKEN: ${{ github.token }}
69+ # run: >-
70+ # gh release create
71+ # "$GITHUB_REF_NAME"
72+ # --repo "$GITHUB_REPOSITORY"
73+ # --notes ""
8774 - name : Upload artifact signatures to GitHub Release
8875 env :
8976 GITHUB_TOKEN : ${{ github.token }}
10895 - name : Download distribution packages
10996 uses : actions/download-artifact@v4
11097 with :
111- name : python-packages
112- path : dist/
98+ name : Packages
99+ path : dist
113100 - name : Publish to TestPyPI
114101 uses : pypa/gh-action-pypi-publish@release/v1
115102 with :
0 commit comments