|
| 1 | +# Copyright 2025 Cockroach Labs, Inc. |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +name: Release build |
| 16 | +on: |
| 17 | + release: |
| 18 | + types: |
| 19 | + - created |
| 20 | +jobs: |
| 21 | + build: |
| 22 | + uses: ./.github/workflows/go-build.yaml |
| 23 | + upload-asset: |
| 24 | + needs: build |
| 25 | + runs-on: ubuntu-latest |
| 26 | + steps: |
| 27 | + - name: Download artifact |
| 28 | + uses: actions/download-artifact@v4 |
| 29 | + with: |
| 30 | + name: blobcheck-linux-amd64 |
| 31 | + - name: Upload asset |
| 32 | + uses: actions/upload-release-asset@v1.0.1 |
| 33 | + env: |
| 34 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 35 | + with: |
| 36 | + upload_url: ${{ github.event.release.upload_url }} |
| 37 | + asset_path: blobcheck-linux-amd64 |
| 38 | + asset_name: blobcheck-${{ github.event.release.tag_name }}-linux-amd64 |
| 39 | + asset_content_type: binary/octet-stream |
| 40 | + |
| 41 | + - name: Download artifact |
| 42 | + uses: actions/download-artifact@v4 |
| 43 | + with: |
| 44 | + name: blobcheck-linux-arm64 |
| 45 | + - name: Upload asset |
| 46 | + uses: actions/upload-release-asset@v1.0.1 |
| 47 | + env: |
| 48 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 49 | + with: |
| 50 | + upload_url: ${{ github.event.release.upload_url }} |
| 51 | + asset_path: blobcheck-linux-arm64 |
| 52 | + asset_name: blobcheck-${{ github.event.release.tag_name }}-linux-arm64 |
| 53 | + asset_content_type: binary/octet-stream |
| 54 | + |
| 55 | + - name: Download artifact |
| 56 | + uses: actions/download-artifact@v4 |
| 57 | + with: |
| 58 | + name: blobcheck-darwin-arm64 |
| 59 | + - name: Upload asset |
| 60 | + uses: actions/upload-release-asset@v1.0.1 |
| 61 | + env: |
| 62 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 63 | + with: |
| 64 | + upload_url: ${{ github.event.release.upload_url }} |
| 65 | + asset_path: blobcheck-darwin-arm64 |
| 66 | + asset_name: blobcheck-${{ github.event.release.tag_name }}-darwin-arm64 |
| 67 | + asset_content_type: binary/octet-stream |
0 commit comments