on master help sign in
fix release assets
commit0e97356e6ec23d19148b428cd947aac6ba48e5e2 authoriko <ilyakooo0@gmail.com> dateTue 28 Dec 2021, 17:19 (5 years ago) parent5d07d5c
1 file changed+21−8
.github/workflows/github-actions-image.yaml+21−8
.github/workflows/github-actions-image.yaml+21−8
@@ -82,13 +82,18 @@ jobs:
8282 skopeo copy docker-archive:$(nix-build -A compaRESTGithubAction -j auto --no-out-link) docker://ilyakooo0/comparest-github-action:${{ github.event.release.tag_name }}
8383 skopeo copy docker-archive:$(nix-build -A compaRESTImage -j auto --no-out-link) docker://ilyakooo0/comparest:${{ github.event.release.tag_name }}
8484
85+ - name: Zip Release Assets
86+ if: github.event_name == 'release'
87+ shell: bash
88+ run: |
89+ zip compaREST-Linux-x86.zip compaREST
90+
8591 - name: Upload compaREST Github Action Docker Image to release
8692 if: github.event_name == 'release'
8793 uses: svenstaro/upload-release-action@2.2.1
8894 with:
8995 repo_token: ${{ secrets.GITHUB_TOKEN }}
9096 file: compaREST-Github-Action-image.tar.gz
91− asset_name: compaREST Github Action Docker Image
9297 tag: ${{ github.ref }}
9398
9499 - name: Upload compaREST Docker Image to release
@@ -97,7 +102,6 @@ jobs:
97102 with:
98103 repo_token: ${{ secrets.GITHUB_TOKEN }}
99104 file: compaREST-image.tar.gz
100− asset_name: compaREST Docker Image
101105 tag: ${{ github.ref }}
102106
103107 - name: Upload compaREST binary – Linux – x86 to release
@@ -105,8 +109,7 @@ jobs:
105109 uses: svenstaro/upload-release-action@2.2.1
106110 with:
107111 repo_token: ${{ secrets.GITHUB_TOKEN }}
108− file: compaREST
109− asset_name: compaREST binary – Linux – x86
112+ file: compaREST-Linux-x86.zip
110113 tag: ${{ github.ref }}
111114
112115 macOS:
@@ -131,13 +134,18 @@ jobs:
131134 name: compaREST binary – macOS – x86
132135 path: compaREST
133136
137+ - name: Zip Release Assets
138+ if: github.event_name == 'release'
139+ shell: bash
140+ run: |
141+ zip -r compaREST-macOS-x86.zip compaREST
142+
134143 - name: Upload compaREST binary – macOS – x86 to release
135144 if: github.event_name == 'release'
136145 uses: svenstaro/upload-release-action@2.2.1
137146 with:
138147 repo_token: ${{ secrets.GITHUB_TOKEN }}
139− file: compaREST
140− asset_name: compaREST binary – macOS – x86
148+ file: compaREST-macOS-x86.zip
141149 tag: ${{ github.ref }}
142150
143151 Linux-Windows:
@@ -162,11 +170,16 @@ jobs:
162170 name: compaREST binary – Windows
163171 path: compaREST
164172
173+ - name: Zip Release Assets
174+ if: github.event_name == 'release'
175+ shell: bash
176+ run: |
177+ zip -r compaREST-Windows.zip compaREST
178+
165179 - name: Upload compaREST binary – Windows to release
166180 if: github.event_name == 'release'
167181 uses: svenstaro/upload-release-action@2.2.1
168182 with:
169183 repo_token: ${{ secrets.GITHUB_TOKEN }}
170− file: compaREST
171− asset_name: compaREST binary – Windows
184+ file: compaREST-Windows.zip
172185 tag: ${{ github.ref }}