Skip to content

Commit

Permalink
Merge pull request #1 from inc4/release-action
Browse files Browse the repository at this point in the history
Release GitHub Actions workflow
  • Loading branch information
valar999 authored Jun 29, 2023
2 parents 54ca7e0 + 906c694 commit 242c2af
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build

env:
go-version: 1.19

on: push

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-go@v3
with:
go-version: ${{ env.go-version }}

- name: Build
run: make

- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: bin/compact
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
BINDIR := $(CURDIR)/bin
BINDIR := bin
SRC := $(shell find . -type f -name '*.go' -print) go.mod go.sum
GOFLAGS := -trimpath

Expand Down

0 comments on commit 242c2af

Please sign in to comment.