Skip to content

Commit 67cc74d

Browse files
committed
feat: ci: upload to weave binaries
1 parent 4155bcd commit 67cc74d

File tree

2 files changed

+29
-22
lines changed

2 files changed

+29
-22
lines changed

.github/workflows/build-release.yml

+22-22
Original file line numberDiff line numberDiff line change
@@ -44,27 +44,27 @@ jobs:
4444
path: weave_${{ matrix.goos }}_${{ matrix.goarch }}.tar.gz
4545
if-no-files-found: error
4646

47-
# upload-to-weave-binaries:
48-
# name: Upload to weave-binaries release
49-
# needs: build
50-
# runs-on: ubuntu-latest
47+
upload-to-weave-binaries:
48+
name: Upload to weave-binaries release
49+
needs: build
50+
runs-on: ubuntu-latest
5151

52-
# steps:
53-
# - name: Download binaries
54-
# uses: actions/download-artifact@v3
55-
# with:
56-
# name: binaries
52+
steps:
53+
- name: Download binaries
54+
uses: actions/download-artifact@v3
55+
with:
56+
path: artifacts
5757

58-
# - name: Create a release in weave-binaries
59-
# uses: softprops/action-gh-release@v2
60-
# if: startsWith(github.ref, 'refs/tags/')
61-
# with:
62-
# repository: initia-labs/weave-binaries
63-
# draft: false
64-
# prerelease: true
65-
# token: ${{ secrets.WEAVE_BINARIES_GITHUB_TOKEN }}
66-
# files: |
67-
# weave_linux_amd64.tar.gz
68-
# weave_linux_arm64.tar.gz
69-
# weave_darwin_amd64.tar.gz
70-
# weave_darwin_arm64.tar.gz
58+
- name: Create a release in weave-binaries
59+
uses: softprops/action-gh-release@v2
60+
if: startsWith(github.ref, 'refs/tags/')
61+
with:
62+
repository: initia-labs/weave-binaries
63+
draft: false
64+
prerelease: true
65+
token: ${{ secrets.WEAVE_BINARIES_GITHUB_TOKEN }}
66+
files: |
67+
artifacts/weave_linux_amd64.tar.gz
68+
artifacts/weave_linux_arm64.tar.gz
69+
artifacts/weave_darwin_amd64.tar.gz
70+
artifacts/weave_darwin_arm64.tar.gz

Makefile

+7
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ WEAVE_VERSION=v0.0.1
99
BUILDDIR ?= $(CURDIR)/build
1010
BUILD_TARGETS = build
1111

12+
release=0.0.15
13+
1214
check_version:
1315
ifneq ($(GO_SYSTEM_VERSION), $(REQUIRE_GO_VERSION))
1416
@echo "ERROR: Go version ${REQUIRE_GO_VERSION} is required for Weave."
@@ -34,3 +36,8 @@ install:
3436
test: build
3537
clear
3638
./weave
39+
40+
release:
41+
git tag -a v$(release) -m "Release version $(release)"
42+
git push origin v$(release)
43+
gh release create v$(release) --title "Release v$(release)" --notes "Release notes for version $(release)"

0 commit comments

Comments
 (0)