on master help sign in
Completed release steps
89b190ciko
.github/workflows/github-actions-image.yaml+51−11
@@ -57,16 +57,17 @@ jobs:
57 - name: Upload compaREST Github Action Image
57 - name: Upload compaREST Github Action Image
58 uses: actions/upload-artifact@v2
58 uses: actions/upload-artifact@v2
59 with:
59 with:
60− name: compaREST-Github-Action-image
60+ name: compaREST Github Action Docker Image
61 path: compaREST-Github-Action-image.tar.gz
61 path: compaREST-Github-Action-image.tar.gz
62
62
63 - name: Upload compaREST Image
63 - name: Upload compaREST Image
64 uses: actions/upload-artifact@v2
64 uses: actions/upload-artifact@v2
65 with:
65 with:
66− name: compaREST-image
66+ name: compaREST Docker Image
67 path: compaREST-image.tar.gz
67 path: compaREST-image.tar.gz
68
68
69 - name: Install skopeo
69 - name: Install skopeo
70+ if: github.event_name == 'release'
70 shell: bash
71 shell: bash
71 run: |
72 run: |
72 sudo apt-get -y update
73 sudo apt-get -y update
@@ -83,8 +84,35 @@ jobs:
83 if: github.event_name == 'release'
84 if: github.event_name == 'release'
84 shell: bash
85 shell: bash
85 run: |
86 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 compaRESTGithubAction -j auto) docker://typeable/comparest-github-action:${{ github.event.release.tag_name }}
87− skopeo copy docker-archive:$(nix-build -A compaRESTImage -j auto) docker://typeable/comparest:${{ github.event.payload.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 }}
88
116
89 - name: Cache Nix post
117 - name: Cache Nix post
90 uses: ./.github/actions/nix_cache_post
118 uses: ./.github/actions/nix_cache_post
@@ -112,9 +140,18 @@ jobs:
112 - name: Upload macOS compaREST bundle
140 - name: Upload macOS compaREST bundle
113 uses: actions/upload-artifact@v2
141 uses: actions/upload-artifact@v2
114 with:
142 with:
115− name: compaREST-macOS
143+ name: compaREST binary – macOS – x86
116 path: compaREST
144 path: compaREST
117
145
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+
118 - name: Cache Nix post
155 - name: Cache Nix post
119 uses: ./.github/actions/nix_cache_post
156 uses: ./.github/actions/nix_cache_post
120
157
@@ -150,17 +187,20 @@ jobs:
150 run: |
187 run: |
151 cp -LR $(nix-build -A WindowsCompaRESTBin -j auto)/bin compaREST
188 cp -LR $(nix-build -A WindowsCompaRESTBin -j auto)/bin compaREST
152
189
153− - name: Upload compaREST Linux Binary
190+ - name: Upload Windows compaREST bundle
154 uses: actions/upload-artifact@v2
191 uses: actions/upload-artifact@v2
155 with:
192 with:
156− name: compaREST-Windows
193+ name: compaREST binary – Windows
157 path: compaREST
194 path: compaREST
158
195
159− - name: Upload Windows compaREST bundle
196+ - name: Upload compaREST binary – Windows to release
160− uses: actions/upload-artifact@v2
197+ if: github.event_name == 'release'
198+ uses: svenstaro/upload-release-action@2.2.1
161 with:
199 with:
200+ repo_token: ${{ secrets.GITHUB_TOKEN }}
201+ file: compaREST
162− name: compaREST-Windows
202+ asset_name: compaREST binary – Windows
163− path: compaREST
203+ tag: ${{ github.ref }}
164
204
165 - name: Cache Nix post
205 - name: Cache Nix post
166 uses: ./.github/actions/nix_cache_post
206 uses: ./.github/actions/nix_cache_post