Skip to content

Commit 1fe16c5

Browse files
committed
release: workflow to push release artifacts
1 parent c8546d8 commit 1fe16c5

File tree

1 file changed

+71
-0
lines changed

1 file changed

+71
-0
lines changed

.github/workflows/releases.yaml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# Copyright 2025 The Cockroach Authors
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+
# SPDX-License-Identifier: Apache-2.0
16+
17+
18+
name: Releases
19+
on:
20+
release:
21+
types:
22+
- created
23+
24+
jobs:
25+
build:
26+
uses: ./.github/workflows/binaries.yaml
27+
upload-asset:
28+
needs: build
29+
runs-on: ubuntu-latest
30+
steps:
31+
- name: Download artifact
32+
uses: actions/download-artifact@v4
33+
with:
34+
name: visus-linux-amd64.zip
35+
- name: Upload asset
36+
uses: actions/[email protected]
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
with:
40+
upload_url: ${{ github.event.release.upload_url }}
41+
asset_path: visus-linux-amd64.zip
42+
asset_name: visus-${{ github.event.release.tag_name }}-linux-amd64.zip
43+
asset_content_type: binary/octet-stream
44+
45+
- name: Download artifact
46+
uses: actions/download-artifact@v4
47+
with:
48+
name: visus-linux-arm64.zip
49+
- name: Upload asset
50+
uses: actions/[email protected]
51+
env:
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53+
with:
54+
upload_url: ${{ github.event.release.upload_url }}
55+
asset_path: visus-linux-arm64.zip
56+
asset_name: visus-${{ github.event.release.tag_name }}-linux-arm64.zip
57+
asset_content_type: binary/octet-stream
58+
59+
- name: Download artifact
60+
uses: actions/download-artifact@v4
61+
with:
62+
name: visus-darwin-arm64.zip
63+
- name: Upload asset
64+
uses: actions/[email protected]
65+
env:
66+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
67+
with:
68+
upload_url: ${{ github.event.release.upload_url }}
69+
asset_path: visus-darwin-arm64.zip
70+
asset_name: visus-${{ github.event.release.tag_name }}-darwin-arm64.zip
71+
asset_content_type: binary/octet-stream

0 commit comments

Comments
 (0)