4747
4848 runs-on : ${{ matrix.config.os }}
4949
50- outputs :
51- artifact_url : ${{ steps.upload-artifacts.outputs.artifact-url }}
52-
5350 steps :
5451 - uses : actions/checkout@v4
5552 with :
@@ -96,17 +93,22 @@ jobs:
9693 if : matrix.config.os == 'windows-2022'
9794 run : |
9895 mkdir dist
96+ # deprecated
9997 cp target/${{ matrix.config.target }}/release/postgrestools.exe ./dist/postgrestools_${{ matrix.config.target }}
98+ cp target/${{ matrix.config.target }}/release/postgres-language-server.exe ./dist/postgres-language-server_${{ matrix.config.target }}
99+
100100 - name : 👦 Name the Binary
101101 if : matrix.config.os != 'windows-2022'
102102 run : |
103103 mkdir dist
104+ # deprecated
104105 cp target/${{ matrix.config.target }}/release/postgrestools ./dist/postgrestools_${{ matrix.config.target }}
106+ cp target/${{ matrix.config.target }}/release/postgres-language-server ./dist/postgres-language-server_${{ matrix.config.target }}
105107
106108 # It is not possible to return the artifacts from the matrix jobs individually: Matrix outputs overwrite each other.
107109 # A common workaround is to upload and download the resulting artifacts.
108- - name : 👆 Upload Artifacts
109- id : upload-artifacts
110+ - name : 👆 Upload Artifacts (deprecated)
111+ id : upload-artifacts-deprecated
110112 uses : actions/upload-artifact@v4
111113 with :
112114 name : postgrestools_${{ matrix.config.target }}
@@ -117,6 +119,20 @@ jobs:
117119 compression-level : 2
118120 if-no-files-found : error
119121
122+ # It is not possible to return the artifacts from the matrix jobs individually: Matrix outputs overwrite each other.
123+ # A common workaround is to upload and download the resulting artifacts.
124+ - name : 👆 Upload Artifacts
125+ id : upload-artifacts
126+ uses : actions/upload-artifact@v4
127+ with :
128+ name : postgres-language-server_${{ matrix.config.target }}
129+ path : ./dist/postgres-language-server_*
130+ # The default compression level is 6; this took the binary down from 350 to 330MB.
131+ # It is recommended to use a lower level for binaries, since the compressed result is not much smaller,
132+ # and the higher levels of compression take much longer.
133+ compression-level : 2
134+ if-no-files-found : error
135+
120136 create_changelog_and_release :
121137 runs-on : ubuntu-latest
122138 needs : [extract_version, build_and_test] # make sure that tests & build work correctly
@@ -142,12 +158,19 @@ jobs:
142158 echo "Tag does not match: ${{ steps.create_changelog.outputs.version }} vs ${{ needs.extract_version.outputs.version }}"
143159 exit 1
144160
161+ - name : 👇 Download Artifacts (deprecated)
162+ uses : actions/download-artifact@v4
163+ id : download-deprecated
164+ with :
165+ merge-multiple : true
166+ pattern : postgrestools_*
167+
145168 - name : 👇 Download Artifacts
146169 uses : actions/download-artifact@v4
147170 id : download
148171 with :
149172 merge-multiple : true
150- pattern : postgrestools_ *
173+ pattern : postgres-language-server_ *
151174
152175 - name : 📂 Create Release
153176 uses : softprops/action-gh-release@v2
0 commit comments