File tree 2 files changed +14
-10
lines changed
2 files changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -138,19 +138,19 @@ echo_info "---< git fetch --depth=1 origin +refs/tags/*:refs/tags/* || true >---
138
138
git fetch --depth=1 origin +refs/tags/* :refs/tags/* || true
139
139
echo " "
140
140
141
- readonly EXISTING_TAG=` git rev-parse -q --verify " refs/tags/v ${RELEASE_VERSION} " ` || true
141
+ readonly EXISTING_TAG=` git rev-parse -q --verify " refs/tags/${RELEASE_VERSION} " ` || true
142
142
if [[ -n " ${EXISTING_TAG} " ]]; then
143
- echo_warn " Tag v ${RELEASE_VERSION} already exists. Exiting."
143
+ echo_warn " Tag ${RELEASE_VERSION} already exists. Exiting."
144
144
echo_warn " If the tag was created in a previous unsuccessful attempt, delete it and try again."
145
- echo_warn " $ git tag -d v ${RELEASE_VERSION} "
146
- echo_warn " $ git push --delete origin v ${RELEASE_VERSION} "
145
+ echo_warn " $ git tag -d ${RELEASE_VERSION} "
146
+ echo_warn " $ git push --delete origin ${RELEASE_VERSION} "
147
147
148
- readonly RELEASE_URL=" https://github.com/firebase/firebase-functions-python/releases/tag/v ${RELEASE_VERSION} "
148
+ readonly RELEASE_URL=" https://github.com/firebase/firebase-functions-python/releases/tag/${RELEASE_VERSION} "
149
149
echo_warn " Delete any corresponding releases at ${RELEASE_URL} ."
150
150
terminate
151
151
fi
152
152
153
- echo_info " Tag v ${RELEASE_VERSION} does not exist."
153
+ echo_info " Tag ${RELEASE_VERSION} does not exist."
154
154
155
155
156
156
echo_info " "
Original file line number Diff line number Diff line change 80
80
81
81
runs-on : ubuntu-latest
82
82
83
+ permissions :
84
+ # Used to create a short-lived OIDC token which is given to PyPi to identify this workflow job
85
+ # See: https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect#adding-permissions-settings
86
+ # and https://docs.pypi.org/trusted-publishers/using-a-publisher/
87
+ id-token : write
88
+ contents : write
89
+
83
90
steps :
84
91
- name : Checkout source for publish
85
- uses : actions/checkout@v3
92
+ uses : actions/checkout@v4
86
93
87
94
# Download the artifacts created by the stage_release job.
88
95
- name : Download release candidates
@@ -113,6 +120,3 @@ jobs:
113
120
114
121
- name : Publish to Pypi
115
122
uses : pypa/gh-action-pypi-publish@release/v1
116
- with :
117
- user : firebase
118
- password : ${{ secrets.PYPI_PASSWORD }}
You can’t perform that action at this time.
0 commit comments