This repository was archived by the owner on Jul 16, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +9
-35
lines changed Expand file tree Collapse file tree 5 files changed +9
-35
lines changed Original file line number Diff line number Diff line change 22name : Build Compiled Assets
33
44on :
5- workflow_call :
6- inputs :
7- release :
8- type : boolean
9- default : false
10- description : " Attach artifacts to a release"
5+ pull_request :
6+ branches :
7+ - main
118
129jobs :
1310 build_assets :
@@ -68,12 +65,12 @@ jobs:
6865 run : ${{matrix.CMD_BUILD}}
6966 - name : Upload a Build Artifact
7067 uses : actions/upload-artifact@v4
71- if : inputs.release == false
68+ if : startsWith(github.ref, 'refs/tags/')
7269 with :
7370 name : ${{ matrix.OUT_FILE_NAME }}
7471 path : ./dist/${{ matrix.OUT_FILE_NAME }}
7572 - name : Upload Release Asset
76- if : inputs.release == true
73+ if : startsWith(github.ref, 'refs/tags/')
7774 id : upload-release-asset
7875 uses : svenstaro/upload-release-action@v2
7976 with :
Original file line number Diff line number Diff line change 11name : Build and Optionally Publish to PyPi
22
33on :
4- workflow_call :
5- inputs :
6- publish :
7- type : boolean
8- default : false
9- description : " Publish to PyPi"
4+ pull_request :
5+ branches :
6+ - main
107
118jobs :
129 build_dist_for_pypi :
7774 ./dist/*.tar.gz
7875 ./dist/*.whl
7976 - name : Publish package to PyPi
80- if : inputs.publish == true
77+ if : startsWith(github.ref, 'refs/tags/')
8178 uses : pypa/gh-action-pypi-publish@release/v1
8279 with :
8380 attestations : false
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ dependencies = [
1313 " click==8.*" ,
1414 " httpx==0.27.*" ,
1515 " ijson==3.*" ,
16- " pathspec>=0.12.1" ,
1716 " pyyaml==6.*" ,
1817 " regex" ,
1918 " responses==0.21.*" ,
Original file line number Diff line number Diff line change @@ -29,8 +29,6 @@ idna==3.10
2929 # requests
3030ijson == 3.3.0
3131 # via codecov-cli (pyproject.toml)
32- pathspec == 0.12.1
33- # via codecov-cli (pyproject.toml)
3432pyyaml == 6.0.2
3533 # via codecov-cli (pyproject.toml)
3634regex == 2024.11.6
You can’t perform that action at this time.
0 commit comments