on master help sign in
fix release assets
0e97356iko
.github/workflows/github-actions-image.yaml+21−8
@@ -82,13 +82,18 @@ jobs:
82 skopeo copy docker-archive:$(nix-build -A compaRESTGithubAction -j auto --no-out-link) docker://ilyakooo0/comparest-github-action:${{ github.event.release.tag_name }}
82 skopeo copy docker-archive:$(nix-build -A compaRESTGithubAction -j auto --no-out-link) docker://ilyakooo0/comparest-github-action:${{ github.event.release.tag_name }}
83 skopeo copy docker-archive:$(nix-build -A compaRESTImage -j auto --no-out-link) docker://ilyakooo0/comparest:${{ github.event.release.tag_name }}
83 skopeo copy docker-archive:$(nix-build -A compaRESTImage -j auto --no-out-link) docker://ilyakooo0/comparest:${{ github.event.release.tag_name }}
84
84
85+ - name: Zip Release Assets
86+ if: github.event_name == 'release'
87+ shell: bash
88+ run: |
89+ zip compaREST-Linux-x86.zip compaREST
90+
85 - name: Upload compaREST Github Action Docker Image to release
91 - name: Upload compaREST Github Action Docker Image to release
86 if: github.event_name == 'release'
92 if: github.event_name == 'release'
87 uses: svenstaro/upload-release-action@2.2.1
93 uses: svenstaro/upload-release-action@2.2.1
88 with:
94 with:
89 repo_token: ${{ secrets.GITHUB_TOKEN }}
95 repo_token: ${{ secrets.GITHUB_TOKEN }}
90 file: compaREST-Github-Action-image.tar.gz
96 file: compaREST-Github-Action-image.tar.gz
91− asset_name: compaREST Github Action Docker Image
92 tag: ${{ github.ref }}
97 tag: ${{ github.ref }}
93
98
94 - name: Upload compaREST Docker Image to release
99 - name: Upload compaREST Docker Image to release
@@ -97,7 +102,6 @@ jobs:
97 with:
102 with:
98 repo_token: ${{ secrets.GITHUB_TOKEN }}
103 repo_token: ${{ secrets.GITHUB_TOKEN }}
99 file: compaREST-image.tar.gz
104 file: compaREST-image.tar.gz
100− asset_name: compaREST Docker Image
101 tag: ${{ github.ref }}
105 tag: ${{ github.ref }}
102
106
103 - name: Upload compaREST binary – Linux – x86 to release
107 - name: Upload compaREST binary – Linux – x86 to release
@@ -105,8 +109,7 @@ jobs:
105 uses: svenstaro/upload-release-action@2.2.1
109 uses: svenstaro/upload-release-action@2.2.1
106 with:
110 with:
107 repo_token: ${{ secrets.GITHUB_TOKEN }}
111 repo_token: ${{ secrets.GITHUB_TOKEN }}
108− file: compaREST
112+ file: compaREST-Linux-x86.zip
109− asset_name: compaREST binary – Linux – x86
110 tag: ${{ github.ref }}
113 tag: ${{ github.ref }}
111
114
112 macOS:
115 macOS:
@@ -131,13 +134,18 @@ jobs:
131 name: compaREST binary – macOS – x86
134 name: compaREST binary – macOS – x86
132 path: compaREST
135 path: compaREST
133
136
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+
134 - name: Upload compaREST binary – macOS – x86 to release
143 - name: Upload compaREST binary – macOS – x86 to release
135 if: github.event_name == 'release'
144 if: github.event_name == 'release'
136 uses: svenstaro/upload-release-action@2.2.1
145 uses: svenstaro/upload-release-action@2.2.1
137 with:
146 with:
138 repo_token: ${{ secrets.GITHUB_TOKEN }}
147 repo_token: ${{ secrets.GITHUB_TOKEN }}
139− file: compaREST
148+ file: compaREST-macOS-x86.zip
140− asset_name: compaREST binary – macOS – x86
141 tag: ${{ github.ref }}
149 tag: ${{ github.ref }}
142
150
143 Linux-Windows:
151 Linux-Windows:
@@ -162,11 +170,16 @@ jobs:
162 name: compaREST binary – Windows
170 name: compaREST binary – Windows
163 path: compaREST
171 path: compaREST
164
172
173+ - name: Zip Release Assets
174+ if: github.event_name == 'release'
175+ shell: bash
176+ run: |
177+ zip -r compaREST-Windows.zip compaREST
178+
165 - name: Upload compaREST binary – Windows to release
179 - name: Upload compaREST binary – Windows to release
166 if: github.event_name == 'release'
180 if: github.event_name == 'release'
167 uses: svenstaro/upload-release-action@2.2.1
181 uses: svenstaro/upload-release-action@2.2.1
168 with:
182 with:
169 repo_token: ${{ secrets.GITHUB_TOKEN }}
183 repo_token: ${{ secrets.GITHUB_TOKEN }}
170− file: compaREST
184+ file: compaREST-Windows.zip
171− asset_name: compaREST binary – Windows
172 tag: ${{ github.ref }}
185 tag: ${{ github.ref }}