File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 86
86
run : python -m build
87
87
88
88
- name : Publish Python package
89
+ if : github.event_name == 'release'
89
90
env :
90
91
PYPI_USERNAME : ${{ secrets.PYPI_USERNAME }}
91
92
PYPI_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
@@ -102,12 +103,14 @@ jobs:
102
103
uses : docker/setup-buildx-action@v2
103
104
104
105
- name : Login to DockerHub
106
+ if : github.event_name == 'release'
105
107
uses : docker/login-action@v2
106
108
with :
107
109
username : ${{ secrets.DOCKER_USERNAME }}
108
110
password : ${{ secrets.DOCKER_PASSWORD }}
109
111
110
112
- name : Login to GitHub Container Registry
113
+ if : github.event_name == 'release'
111
114
uses : docker/login-action@v2
112
115
with :
113
116
registry : ghcr.io
@@ -146,6 +149,6 @@ jobs:
146
149
uses : docker/build-push-action@v3
147
150
with :
148
151
context : .
149
- push : true
152
+ push : ${{ github.event_name == 'release' }}
150
153
tags : ${{ steps.meta.outputs.tags }}
151
154
labels : ${{ steps.meta.outputs.labels }}
You can’t perform that action at this time.
0 commit comments