@@ -61,19 +61,19 @@ jobs:
6161 DATABASE_URL : postgres://postgres:postgres@localhost:5432/postgres
6262
6363 - name : 🛠️ Run Build
64- run : cargo build -p pg_cli --release --target ${{ matrix.config.target }}
64+ run : cargo build -p mini_binary --release --target ${{ matrix.config.target }}
6565
6666 # windows is a special snowflake to, it saves binaries as .exe
6767 - name : 👦 Name the Binary
6868 if : matrix.config.os == 'windows-latest'
6969 run : |
7070 mkdir dist
71- cp target/${{ matrix.config.target }}/release/pg_cli .exe ./dist/pgcli_${{ matrix.config.target }}
71+ cp target/${{ matrix.config.target }}/release/mini_binary .exe ./dist/pgcli_${{ matrix.config.target }}
7272 - name : 👦 Name the Binary
7373 if : matrix.config.os != 'windows-latest'
7474 run : |
7575 mkdir dist
76- cp target/${{ matrix.config.target }}/release/pg_cli ./dist/pgcli_${{ matrix.config.target }}
76+ cp target/${{ matrix.config.target }}/release/mini_binary ./dist/pgcli_${{ matrix.config.target }}
7777
7878 # It is not possible to return the artifacts from the matrix jobs individually: Matrix outputs overwrite each other.
7979 # A common workaround is to upload and download the resulting artifacts.
@@ -117,6 +117,7 @@ jobs:
117117
118118 - name : 📂 Create Release
119119 uses : softprops/action-gh-release@v1
120+ id : create-release
120121 env :
121122 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
122123 with :
@@ -125,3 +126,13 @@ jobs:
125126 tag_name : ${{ steps.create_changelog.outputs.version }}
126127 files : pgcli_*
127128 fail_on_unmatched_files : true
129+ draft : true
130+
131+ - name : ✅ Output Link to Worflow Summary
132+ run : |
133+ echo "# 🚀 Release completed!" >> $GITHUB_STEP_SUMMARY
134+ echo "" >> $GITHUB_STEP_SUMMARY
135+ echo "Here is the URL to the Release Draft:" >> $GITHUB_STEP_SUMMARY
136+ echo "" >> $GITHUB_STEP_SUMMARY
137+ echo "[Link](${{ steps.create-release.outputs.url }})"" >> $GITHUB_STEP_SUMMARY
138+ echo "" >> $GITHUB_STEP_SUMMARY
0 commit comments