1
- name : Release PG_CLI
1
+ name : Release Binary
2
2
3
3
on :
4
4
workflow_dispatch :
@@ -61,28 +61,28 @@ jobs:
61
61
DATABASE_URL : postgres://postgres:postgres@localhost:5432/postgres
62
62
63
63
- name : 🛠️ Run Build
64
- run : cargo build -p pg_cli --release --target ${{ matrix.config.target }}
64
+ run : cargo build -p pglt_cli --release --target ${{ matrix.config.target }}
65
65
66
66
# windows is a special snowflake to, it saves binaries as .exe
67
67
- name : 👦 Name the Binary
68
68
if : matrix.config.os == 'windows-latest'
69
69
run : |
70
70
mkdir dist
71
- cp target/${{ matrix.config.target }}/release/pg_cli .exe ./dist/pgcli_ ${{ matrix.config.target }}
71
+ cp target/${{ matrix.config.target }}/release/pglt .exe ./dist/pglt_ ${{ matrix.config.target }}
72
72
- name : 👦 Name the Binary
73
73
if : matrix.config.os != 'windows-latest'
74
74
run : |
75
75
mkdir dist
76
- cp target/${{ matrix.config.target }}/release/pg_cli ./dist/pgcli_ ${{ matrix.config.target }}
76
+ cp target/${{ matrix.config.target }}/release/pglt ./dist/pglt_ ${{ matrix.config.target }}
77
77
78
78
# It is not possible to return the artifacts from the matrix jobs individually: Matrix outputs overwrite each other.
79
79
# A common workaround is to upload and download the resulting artifacts.
80
80
- name : 👆 Upload Artifacts
81
81
id : upload-artifacts
82
82
uses : actions/upload-artifact@v4
83
83
with :
84
- name : pgcli_ ${{ matrix.config.target }}
85
- path : ./dist/pgcli_ *
84
+ name : pglt_ ${{ matrix.config.target }}
85
+ path : ./dist/pglt_ *
86
86
# The default compression level is 6; this took the binary down from 350 to 330MB.
87
87
# It is recommended to use a lower level for binaries, since the compressed result is not much smaller,
88
88
# and the higher levels of compression take much longer.
@@ -113,7 +113,7 @@ jobs:
113
113
id : download
114
114
with :
115
115
merge-multiple : true
116
- pattern : pgcli_ *
116
+ pattern : pglt_ *
117
117
118
118
- name : 📂 Create Release
119
119
uses : softprops/action-gh-release@v2
@@ -124,7 +124,7 @@ jobs:
124
124
token : ${{ secrets.GITHUB_TOKEN }}
125
125
body : ${{ steps.create_changelog.outputs.content }}
126
126
tag_name : ${{ steps.create_changelog.outputs.version }}
127
- files : pgcli_ *
127
+ files : pglt_ *
128
128
fail_on_unmatched_files : true
129
129
draft : true
130
130
0 commit comments