Skip to content

Commit 363550c

Browse files
authored
Update release workflow to use repository context for artifact upload (#3911)
## Changes Update release workflow to use repository context for artifact upload ## Why <!-- Why are these changes needed? Provide the context that the reviewer might be missing. For example, were there any decisions behind the change that are not reflected in the code itself? --> ## Tests <!-- How have you tested the changes? --> <!-- If your PR needs to be included in the release notes for next release, add a separate entry in NEXT_CHANGELOG.md as part of your PR. -->
1 parent 3560784 commit 363550c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ jobs:
137137
for file in dist/*.zip dist/*SHA256SUMS*; do
138138
if [ -f "$file" ]; then
139139
echo "Uploading $(basename $file)"
140-
gh release upload ${{ github.ref_name }} "$file"
140+
gh release upload ${{ github.ref_name }} "$file" --repo ${{ github.repository }}
141141
fi
142142
done
143143
env:
@@ -148,7 +148,7 @@ jobs:
148148
group: databricks-deco-testing-runner-group
149149
labels: ubuntu-latest-deco
150150

151-
needs: [goreleaser-windows, goreleaser-unix]
151+
needs: upload-windows-to-release
152152

153153
steps:
154154
- name: Set VERSION variable from tag
@@ -176,7 +176,7 @@ jobs:
176176
group: databricks-deco-testing-runner-group
177177
labels: ubuntu-latest-deco
178178

179-
needs: goreleaser-unix
179+
needs: upload-windows-to-release
180180

181181
steps:
182182
- name: Set VERSION variable from tag
@@ -217,7 +217,7 @@ jobs:
217217
group: databricks-deco-testing-runner-group
218218
labels: ubuntu-latest-deco
219219

220-
needs: [goreleaser-windows, goreleaser-unix]
220+
needs: upload-windows-to-release
221221

222222
steps:
223223
- name: Set VERSION variable from tag
@@ -245,7 +245,7 @@ jobs:
245245
group: databricks-deco-testing-runner-group
246246
labels: ubuntu-latest-deco
247247

248-
needs: [goreleaser-windows, goreleaser-unix]
248+
needs: upload-windows-to-release
249249

250250
# IMPORTANT:
251251
# - 'id-token: write' is mandatory for OIDC and trusted publishing to PyPi

0 commit comments

Comments
 (0)