Skip to content

Commit fbc4f90

Browse files
committed
Reintroduce rancher desktop steve release
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
1 parent d603977 commit fbc4f90

1 file changed

Lines changed: 33 additions & 11 deletions

File tree

.github/workflows/release.yaml

Lines changed: 33 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,43 @@
1-
name: Release
1+
name: Build and Release Steve API
22

3-
on:
3+
on:
44
push:
55
tags:
66
- v*
77

88
jobs:
9-
release:
9+
build:
1010
runs-on: ubuntu-latest
11-
permissions:
12-
contents: write
13-
steps:
14-
- name : Checkout repository
15-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
11+
steps:
12+
- uses: actions/setup-go@v2
13+
with:
14+
go-version: 1.24.x
1615

17-
- name: Create release on Github
16+
- uses: actions/checkout@v2
17+
with:
18+
fetch-depth: 1
19+
submodules: recursive
20+
persist-credentials: false
21+
22+
- name: Build Steve API
1823
run: |
19-
gh --repo "${{ github.repository }}" release create ${{ github.ref_name }} --verify-tag --generate-notes
24+
cd bin/
25+
chmod +x build.sh
26+
./build.sh
27+
28+
- name: Upload Build
29+
uses: actions/upload-artifact@v2
30+
with:
31+
path: ./release/*
32+
if-no-files-found: error
33+
34+
- name: Create Release and Upload Assets
2035
env:
21-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
run: |
38+
# Create a release using the tag
39+
gh release create "${{ github.ref_name }}" --generate-notes
40+
# Upload all files in the release directory
41+
for asset in ./release/*; do
42+
gh release upload "${{ github.ref_name }}" "$asset"
43+
done

0 commit comments

Comments
 (0)