Skip to content

Commit

Permalink
build release binaries using ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas von Dein committed Jan 18, 2025
1 parent e5dfad1 commit ff76137
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: build-and-test
on:
push:
tags:
- "*"

jobs:
release:
name: Build Release Assets
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.22.11

- name: Build the executables
run: ./mkrel.sh rpnc ${{ github.ref_name}}

- name: List the executables
run: ls -l ./releases

- name: Upload the binaries
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
file: ./releases/*
file_glob: true
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ goupdate:
buildall:
./mkrel.sh $(tool) $(VERSION)

release: buildall
gh release create v$(VERSION) --generate-notes releases/*
release:
gh release create v$(VERSION) --generate-notes

show-versions: buildlocal
@echo "### rpn version:"
Expand Down

0 comments on commit ff76137

Please sign in to comment.