Skip to content

Commit 00425b0

Browse files
authored
Use standard naming for release artifacts (#1763)
1 parent 862de94 commit 00425b0

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,19 @@ jobs:
3232
- run: bun install --frozen-lockfile
3333

3434
- run: bun run build:linux-amd64
35-
- run: gzip -c bin/linux-amd64/gitlab-ci-local > bin/linux-amd64.gz
35+
- run: tar czf bin/gitlab-ci-local-linux-amd64.tar.gz -C bin/linux-amd64 gitlab-ci-local
3636

3737
- run: bun run build:linux-arm64
38-
- run: gzip -c bin/linux-arm64/gitlab-ci-local > bin/linux-arm64.gz
38+
- run: tar czf bin/gitlab-ci-local-linux-arm64.tar.gz -C bin/linux-arm64 gitlab-ci-local
3939

4040
- run: bun run build:win
41-
- run: gzip -c bin/win/gitlab-ci-local.exe > bin/win.gz
41+
- run: (cd bin/win && zip ../gitlab-ci-local-windows-amd64.zip gitlab-ci-local.exe)
4242

4343
- run: bun run build:macos-x64
44-
- run: gzip -c bin/macos-x64/gitlab-ci-local > bin/macos-x64.gz
44+
- run: tar czf bin/gitlab-ci-local-darwin-amd64.tar.gz -C bin/macos-x64 gitlab-ci-local
4545

4646
- run: bun run build:macos-arm64
47-
- run: gzip -c bin/macos-arm64/gitlab-ci-local > bin/macos-arm64.gz
47+
- run: tar czf bin/gitlab-ci-local-darwin-arm64.tar.gz -C bin/macos-arm64 gitlab-ci-local
4848

4949
- name: Install rclone
5050
run: sudo apt-get update && sudo apt-get install -y rclone
@@ -73,9 +73,9 @@ jobs:
7373
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
7474
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
7575

76-
- name: Sign release binaries
76+
- name: Sign release archives
7777
run: |
78-
for f in bin/*.gz; do
78+
for f in bin/gitlab-ci-local-*; do
7979
gpg --batch --default-key "madsjon@gmail.com" --detach-sign --armor "$f"
8080
done
8181
@@ -91,8 +91,8 @@ jobs:
9191
- name: Create GitHub Release
9292
if: github.ref_type == 'tag'
9393
run: |
94-
gh release create "${GITHUB_REF_NAME}" bin/*.gz bin/*.gz.asc --generate-notes ||
95-
gh release upload "${GITHUB_REF_NAME}" bin/*.gz bin/*.gz.asc --clobber
94+
gh release create "${GITHUB_REF_NAME}" bin/gitlab-ci-local-* --generate-notes ||
95+
gh release upload "${GITHUB_REF_NAME}" bin/gitlab-ci-local-* --clobber
9696
env:
9797
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9898

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ CLI tool to run GitLab CI pipelines locally. Written in TypeScript, built with B
2525

2626
## Release artifacts
2727

28-
- GitHub releases: `linux-amd64.gz`, `linux-arm64.gz`, `macos-x64.gz`, `macos-arm64.gz`, `win.gz`
28+
- GitHub releases: `gitlab-ci-local-{os}-{arch}.tar.gz` (linux/darwin) and `.zip` (windows), plus `.asc` signatures
2929
- Debian PPA: amd64 and arm64 `.deb` packages, hosted on Cloudflare R2
3030
- npm: `dist/index.js` bundle targeting Node.js

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ brew install gitlab-ci-local
121121
Download and put binary in `C:\Program Files\Git\mingw64\bin`
122122

123123
```bash
124-
curl -L https://github.com/firecow/gitlab-ci-local/releases/latest/download/win.gz | gunzip -c > /c/Program\ Files/Git/mingw64/bin/gitlab-ci-local.exe
124+
curl -L https://github.com/firecow/gitlab-ci-local/releases/latest/download/gitlab-ci-local-windows-amd64.zip -o gcl.zip && unzip -o gcl.zip -d /c/Program\ Files/Git/mingw64/bin && rm gcl.zip
125125
```
126126

127127
Executing `gitlab-ci-local` with `--variable MSYS_NO_PATHCONV=1` can be useful in certain situations

0 commit comments

Comments
 (0)