Skip to content

Commit 7b2c5c3

Browse files
committed
ci: create ".gz" files, as ubi doesn't like xz...
1 parent 96cc7fd commit 7b2c5c3

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/tag.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
GOARCH: amd64
2525
- run: ./tstdin -help
2626
- run: sh -c '(echo foo ; sleep 1; echo bar ; sleep 1 ; echo baz) | ./tstdin'
27-
- run: xz --compress --stdout tstdin > tstdin-linux-amd64.xz
27+
- run: gzip --stdout tstdin > tstdin-linux-amd64.gz
2828
# Build #2: windows/amd64
2929
- run: ./.dev/build-static.sh
3030
env:
@@ -36,20 +36,20 @@ jobs:
3636
env:
3737
GOOS: darwin
3838
GOARCH: amd64
39-
- run: xz --compress --stdout tstdin > tstdin-darwin-amd64.xz
39+
- run: gzip --stdout tstdin > tstdin-darwin-amd64.gz
4040
# Upload artifacts...
4141
- uses: actions/upload-artifact@master
4242
with:
43-
name: tstdin-linux-amd64.xz
44-
path: tstdin-linux-amd64.xz
43+
name: tstdin-linux-amd64.gz
44+
path: tstdin-linux-amd64.gz
4545
- uses: actions/upload-artifact@master
4646
with:
4747
name: tstdin.exe
4848
path: tstdin.exe
4949
- uses: actions/upload-artifact@master
5050
with:
51-
name: tstdin-darwin-amd64.xz
52-
path: tstdin-darwin-amd64.xz
51+
name: tstdin-darwin-amd64.gz
52+
path: tstdin-darwin-amd64.gz
5353

5454
release:
5555
needs: [build]
@@ -65,13 +65,13 @@ jobs:
6565
tag_name: ${{ github.ref }}
6666
release_name: Release ${{ github.ref }}
6767

68-
uploadxz:
68+
uploadgz:
6969
needs: [release]
7070
strategy:
7171
matrix:
7272
file:
73-
- tstdin-linux-amd64.xz
74-
- tstdin-darwin-amd64.xz
73+
- tstdin-linux-amd64.gz
74+
- tstdin-darwin-amd64.gz
7575
runs-on: ubuntu-20.04
7676
steps:
7777
- uses: actions/download-artifact@master
@@ -85,7 +85,7 @@ jobs:
8585
upload_url: ${{ needs.release.outputs.upload_url }}
8686
asset_path: ./${{ matrix.file }}
8787
asset_name: ${{ matrix.file }}
88-
asset_content_type: application/x-xz
88+
asset_content_type: application/gzip
8989

9090
uploadexe:
9191
needs: [release]

0 commit comments

Comments
 (0)