Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
laktak committed Jun 3, 2024
1 parent b5b5978 commit 55eec6c
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: laktak
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: release

on:
push:
tags: ["v*"]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22"

- name: chkfmt
run: scripts/chkfmt

- name: xbuild
run: version=${GITHUB_REF#$"refs/tags/v"} scripts/xbuild

- name: release
uses: softprops/action-gh-release@v2
with:
draft: true
files: dist/*

2 changes: 2 additions & 0 deletions scripts/xbuild
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ if [ -z "$version" ]; then
version=$(git rev-parse HEAD)
fi

echo "building version $version"

mkdir -p dist
rm -f dist/*

Expand Down

0 comments on commit 55eec6c

Please sign in to comment.