@@ -96,16 +96,21 @@ jobs:
9696 if : matrix.config.os == 'windows-2022'
9797 run : |
9898 mkdir dist
99+ # deprecated
99100 cp target/${{ matrix.config.target }}/release/postgrestools.exe ./dist/postgrestools_${{ matrix.config.target }}
101+ cp target/${{ matrix.config.target }}/release/postgres-language-server.exe ./dist/postgres-language-server_${{ matrix.config.target }}
102+
100103 - name : 👦 Name the Binary
101104 if : matrix.config.os != 'windows-2022'
102105 run : |
103106 mkdir dist
107+ # deprecated
104108 cp target/${{ matrix.config.target }}/release/postgrestools ./dist/postgrestools_${{ matrix.config.target }}
109+ cp target/${{ matrix.config.target }}/release/postgres-language-server ./dist/postgres-language-server_${{ matrix.config.target }}
105110
106111 # It is not possible to return the artifacts from the matrix jobs individually: Matrix outputs overwrite each other.
107112 # A common workaround is to upload and download the resulting artifacts.
108- - name : 👆 Upload Artifacts
113+ - name : 👆 Upload Artifacts (deprecated)
109114 id : upload-artifacts
110115 uses : actions/upload-artifact@v4
111116 with :
@@ -117,6 +122,20 @@ jobs:
117122 compression-level : 2
118123 if-no-files-found : error
119124
125+ # It is not possible to return the artifacts from the matrix jobs individually: Matrix outputs overwrite each other.
126+ # A common workaround is to upload and download the resulting artifacts.
127+ - name : 👆 Upload Artifacts
128+ id : upload-artifacts
129+ uses : actions/upload-artifact@v4
130+ with :
131+ name : postgres-language-server_${{ matrix.config.target }}
132+ path : ./dist/postgres-language-server_*
133+ # The default compression level is 6; this took the binary down from 350 to 330MB.
134+ # It is recommended to use a lower level for binaries, since the compressed result is not much smaller,
135+ # and the higher levels of compression take much longer.
136+ compression-level : 2
137+ if-no-files-found : error
138+
120139 create_changelog_and_release :
121140 runs-on : ubuntu-latest
122141 needs : [extract_version, build_and_test] # make sure that tests & build work correctly
@@ -142,13 +161,20 @@ jobs:
142161 echo "Tag does not match: ${{ steps.create_changelog.outputs.version }} vs ${{ needs.extract_version.outputs.version }}"
143162 exit 1
144163
145- - name : 👇 Download Artifacts
164+ - name : 👇 Download Artifacts (deprecated)
146165 uses : actions/download-artifact@v4
147166 id : download
148167 with :
149168 merge-multiple : true
150169 pattern : postgrestools_*
151170
171+ - name : 👇 Download Artifacts
172+ uses : actions/download-artifact@v4
173+ id : download
174+ with :
175+ merge-multiple : true
176+ pattern : postgres-language-server_*
177+
152178 - name : 📂 Create Release
153179 uses : softprops/action-gh-release@v2
154180 id : create-release
0 commit comments