Skip to content

Commit 85aed28

Browse files
committed
Modified release process to include install.sh
1 parent 9b8a1cf commit 85aed28

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/cd-release.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,13 @@ jobs:
122122
release_name: ${{ needs.format-version.outputs.version }}
123123
draft: false
124124
commitish: ${{ steps.build_binaries.outputs.commitish }}
125+
- name: Create install script
126+
id: create-install-script
127+
shell: bash
128+
run: |
129+
sed 's|__DOLTGRES_VERSION__|'"$DOLTGRES_VERSION"'|' scripts/install.sh > out/install.sh
130+
env:
131+
DOLTGRES_VERSION: ${{ needs.format-version.outputs.version }}
125132
- name: Upload Linux AMD64 Distro
126133
id: upload-linux-amd64-distro
127134
uses: dolthub/upload-release-asset@v2
@@ -182,6 +189,16 @@ jobs:
182189
asset_path: out/doltgresql-windows-amd64.7z
183190
asset_name: doltgresql-windows-amd64.7z
184191
asset_content_type: application/x-7z-compressed
192+
- name: Upload install script
193+
id: upload-install-script
194+
uses: dolthub/upload-release-asset@v2
195+
env:
196+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
197+
with:
198+
upload_url: ${{ steps.create_release.outputs.upload_url }}
199+
asset_path: out/install.sh
200+
asset_name: install.sh
201+
asset_content_type: text/plain
185202

186203
create-release-notes:
187204
needs: [format-version, create-release]

0 commit comments

Comments
 (0)