File tree 5 files changed +9
-35
lines changed
5 files changed +9
-35
lines changed Original file line number Diff line number Diff line change 2
2
name : Build Compiled Assets
3
3
4
4
on :
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
11
8
12
9
jobs :
13
10
build_assets :
@@ -68,12 +65,12 @@ jobs:
68
65
run : ${{matrix.CMD_BUILD}}
69
66
- name : Upload a Build Artifact
70
67
uses : actions/upload-artifact@v4
71
- if : inputs.release == false
68
+ if : startsWith(github.ref, 'refs/tags/')
72
69
with :
73
70
name : ${{ matrix.OUT_FILE_NAME }}
74
71
path : ./dist/${{ matrix.OUT_FILE_NAME }}
75
72
- name : Upload Release Asset
76
- if : inputs.release == true
73
+ if : startsWith(github.ref, 'refs/tags/')
77
74
id : upload-release-asset
78
75
uses : svenstaro/upload-release-action@v2
79
76
with :
Original file line number Diff line number Diff line change 1
1
name : Build and Optionally Publish to PyPi
2
2
3
3
on :
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
10
7
11
8
jobs :
12
9
build_dist_for_pypi :
77
74
./dist/*.tar.gz
78
75
./dist/*.whl
79
76
- name : Publish package to PyPi
80
- if : inputs.publish == true
77
+ if : startsWith(github.ref, 'refs/tags/')
81
78
uses : pypa/gh-action-pypi-publish@release/v1
82
79
with :
83
80
attestations : false
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ dependencies = [
13
13
" click==8.*" ,
14
14
" httpx==0.27.*" ,
15
15
" ijson==3.*" ,
16
- " pathspec>=0.12.1" ,
17
16
" pyyaml==6.*" ,
18
17
" regex" ,
19
18
" responses==0.21.*" ,
Original file line number Diff line number Diff line change @@ -29,8 +29,6 @@ idna==3.10
29
29
# requests
30
30
ijson == 3.3.0
31
31
# via codecov-cli (pyproject.toml)
32
- pathspec == 0.12.1
33
- # via codecov-cli (pyproject.toml)
34
32
pyyaml == 6.0.2
35
33
# via codecov-cli (pyproject.toml)
36
34
regex == 2024.11.6
You can’t perform that action at this time.
0 commit comments