Skip to content

Commit 1c49d08

Browse files
committed
Upload release artifact for tags
1 parent 25acaf8 commit 1c49d08

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/build-package-files.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,17 @@ jobs:
4949
# - name: "Install release archive to verify correctness"
5050
# run: pecl install mongodb-${{ env.PACKAGE_VERSION }}.tgz
5151

52-
- name: "Upload archive"
52+
- name: "Upload artifact"
5353
uses: actions/upload-artifact@v4
5454
with:
5555
name: mongodb-${{ env.PACKAGE_VERSION }}.tgz
5656
path: mongodb-${{ env.PACKAGE_VERSION }}.tgz
5757
retention-days: 3
58+
59+
- name: "Upload release artifact"
60+
if: ${{ github.ref_type == 'tag' }}
61+
run: gh release upload ${{ github.ref_name }} mongodb-${{ env.PACKAGE_VERSION }}.tgz
62+
# Until we've changed the process to always have a release draft, ignore errors during upload
63+
continue-on-error: true
64+
env:
65+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)