Commit cbb011c 1 parent 57e4aad commit cbb011c Copy full SHA for cbb011c
File tree 1 file changed +32
-0
lines changed
1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 61
61
path : .coverage.mypy/
62
62
63
63
64
+ pypi :
65
+ runs-on : ubuntu-latest
66
+ needs : [build] # add all other jobs here
67
+
68
+ steps :
69
+ # ugh https://github.com/actions/toolkit/blob/main/docs/commands.md#path-manipulation
70
+ - run : echo "$HOME/.local/bin" >> $GITHUB_PATH
71
+
72
+ - uses : actions/setup-python@v5
73
+ with :
74
+ python-version : ' 3.8'
75
+
76
+ - uses : actions/checkout@v4
77
+ with :
78
+ submodules : recursive
79
+
80
+ - name : ' release to test pypi'
81
+ # always deploy merged master to test pypi
82
+ if : github.event_name != 'pull_request' && github.event.ref == 'refs/heads/master'
83
+ env :
84
+ TWINE_PASSWORD : ${{ secrets.TWINE_PASSWORD_TEST }}
85
+ run : pip3 install --user --upgrade build twine && .ci/release --test
86
+
87
+ - name : ' release to pypi'
88
+ # always deploy tags to release pypi
89
+ # NOTE: release tags are guarded by on: push: tags on the top
90
+ if : github.event_name != 'pull_request' && startsWith(github.event.ref, 'refs/tags')
91
+ env :
92
+ TWINE_PASSWORD : ${{ secrets.TWINE_PASSWORD }}
93
+ run : pip3 install --user --upgrade build twine && .ci/release
94
+
64
95
# ##
65
96
build_extension :
66
97
env :
97
128
with :
98
129
name : ' ${{ env.name }}-firefox-release-latest.zip'
99
130
path : ' extension/dist/artifacts/firefox/${{ env.name }}-*.zip'
131
+
You can’t perform that action at this time.
0 commit comments