Skip to content

Commit

Permalink
feat: add release
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathongardner committed Sep 29, 2024
1 parent 2aca832 commit e6f73e5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,24 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: 1.22.4
- name: Checkout Code
uses: actions/checkout@v4
- name: Build go
working-directory: ./setup/
run: |
go download
for arch in amd64, arm64, arm32
do
GOARCH=$arch go build -o jelp-$GOOS-$arch
cd setup
go mod download
for arch in amd64 arm64; do
echo -e "$arch\n"
GOARCH=$arch go build -o jest-$GOOS-$arch
done
env:
GOOS: linux
- name: Build release file
run: git log $(git show HEAD~1:setup/version.txt)..HEAD --pretty=format:"- %s (%h)" > release.md
# - name: Update Change Log
# run: echo -e "# $(cat setup/version.txt)\n$(cat release.md)\n$(cat CHANGELOG.md)" > CHANGELOG.md
- name: Create release
run: gh release create $(cat setup/version.txt) -F release.md ./setup/jest-*
env:
GH_TOKEN: ${{ github.token }}

2 changes: 1 addition & 1 deletion setup/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.0.0
v0.0.1

0 comments on commit e6f73e5

Please sign in to comment.