on master help sign in
Completed release steps
commit89b190c79777b906f866f2e376c895de4fa3806d authoriko <ilyakooo0@gmail.com> dateTue 21 Dec 2021, 17:27 (5 years ago) parent69e9214
1 file changed+51−11
.github/workflows/github-actions-image.yaml+51−11
.github/workflows/github-actions-image.yaml+51−11
@@ -57,16 +57,17 @@ jobs:
5757 - name: Upload compaREST Github Action Image
5858 uses: actions/upload-artifact@v2
5959 with:
60− name: compaREST-Github-Action-image
60+ name: compaREST Github Action Docker Image
6161 path: compaREST-Github-Action-image.tar.gz
6262
6363 - name: Upload compaREST Image
6464 uses: actions/upload-artifact@v2
6565 with:
66− name: compaREST-image
66+ name: compaREST Docker Image
6767 path: compaREST-image.tar.gz
6868
6969 - name: Install skopeo
70+ if: github.event_name == 'release'
7071 shell: bash
7172 run: |
7273 sudo apt-get -y update
@@ -83,8 +84,35 @@ jobs:
8384 if: github.event_name == 'release'
8485 shell: bash
8586 run: |
86− skopeo copy docker-archive:$(nix-build -A compaRESTGithubAction -j auto) docker://typeable/comparest-github-action:${{ github.event.payload.name }}
87− skopeo copy docker-archive:$(nix-build -A compaRESTImage -j auto) docker://typeable/comparest:${{ github.event.payload.name }}
87+ skopeo copy docker-archive:$(nix-build -A compaRESTGithubAction -j auto) docker://typeable/comparest-github-action:${{ github.event.release.tag_name }}
88+ skopeo copy docker-archive:$(nix-build -A compaRESTImage -j auto) docker://typeable/comparest:${{ github.event.release.tag_name }}
89+
90+ - name: Upload compaREST Github Action Docker Image to release
91+ if: github.event_name == 'release'
92+ uses: svenstaro/upload-release-action@2.2.1
93+ with:
94+ repo_token: ${{ secrets.GITHUB_TOKEN }}
95+ file: compaREST-Github-Action-image.tar.gz
96+ asset_name: compaREST Github Action Docker Image
97+ tag: ${{ github.ref }}
98+
99+ - name: Upload compaREST Docker Image to release
100+ if: github.event_name == 'release'
101+ uses: svenstaro/upload-release-action@2.2.1
102+ with:
103+ repo_token: ${{ secrets.GITHUB_TOKEN }}
104+ file: compaREST-image.tar.gz
105+ asset_name: compaREST Docker Image
106+ tag: ${{ github.ref }}
107+
108+ - name: Upload compaREST binary – Linux – x86 to release
109+ if: github.event_name == 'release'
110+ uses: svenstaro/upload-release-action@2.2.1
111+ with:
112+ repo_token: ${{ secrets.GITHUB_TOKEN }}
113+ file: compaREST
114+ asset_name: compaREST binary – Linux – x86
115+ tag: ${{ github.ref }}
88116
89117 - name: Cache Nix post
90118 uses: ./.github/actions/nix_cache_post
@@ -112,9 +140,18 @@ jobs:
112140 - name: Upload macOS compaREST bundle
113141 uses: actions/upload-artifact@v2
114142 with:
115− name: compaREST-macOS
143+ name: compaREST binary – macOS – x86
116144 path: compaREST
117145
146+ - name: Upload compaREST binary – macOS – x86 to release
147+ if: github.event_name == 'release'
148+ uses: svenstaro/upload-release-action@2.2.1
149+ with:
150+ repo_token: ${{ secrets.GITHUB_TOKEN }}
151+ file: compaREST
152+ asset_name: compaREST binary – macOS – x86
153+ tag: ${{ github.ref }}
154+
118155 - name: Cache Nix post
119156 uses: ./.github/actions/nix_cache_post
120157
@@ -150,17 +187,20 @@ jobs:
150187 run: |
151188 cp -LR $(nix-build -A WindowsCompaRESTBin -j auto)/bin compaREST
152189
153− - name: Upload compaREST Linux Binary
190+ - name: Upload Windows compaREST bundle
154191 uses: actions/upload-artifact@v2
155192 with:
156− name: compaREST-Windows
193+ name: compaREST binary – Windows
157194 path: compaREST
158195
159− - name: Upload Windows compaREST bundle
160− uses: actions/upload-artifact@v2
196+ - name: Upload compaREST binary – Windows to release
197+ if: github.event_name == 'release'
198+ uses: svenstaro/upload-release-action@2.2.1
161199 with:
162− name: compaREST-Windows
163− path: compaREST
200+ repo_token: ${{ secrets.GITHUB_TOKEN }}
201+ file: compaREST
202+ asset_name: compaREST binary – Windows
203+ tag: ${{ github.ref }}
164204
165205 - name: Cache Nix post
166206 uses: ./.github/actions/nix_cache_post