Skip to content

Commit

Permalink
Fixed release
Browse files Browse the repository at this point in the history
  • Loading branch information
WaybackBot committed Aug 23, 2020
1 parent e88e463 commit 822a846
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,16 @@ jobs:
uses: actions/download-artifact@v2
with:
name: wayback
path: bin

- name: Create all binary digest
id: digest
run: |
echo ::set-output name=result::$(find ./wayback* -type f -exec sha256sum {} +)
digest=$(find bin/wayback* -type f -exec sha256sum {} +)
digest="${digest//$'%'/%25}"
digest="${digest//$'\n'/%0A}"
digest="${digest//$'bin\/'}"
echo "::set-output name=result::$digest"
release:
name: Create and upload release
Expand All @@ -76,7 +81,9 @@ jobs:
body: |
**Digests in this release:**
```
${{ needs.checksum.outputs.digest }}
```
draft: false
prerelease: true

Expand Down
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ NAME = wayback
BINDIR ?= ./bin
PACKDIR ?= ./build/package
VERSION := $(shell cat VERSION)
GOBUILD := CGO_ENABLED=0 go build --ldflags="-s -w" -v
GOFILES := $(wildcard ./cmd/*.go)
GOBUILD := CGO_ENABLED=0 go build --ldflags="-s -w" -v -a
GOFILES := $(wildcard ./cmd/wayback/*.go)
PROJECT := github.com/wabarc/wayback
PACKAGES := $(shell go list ./...)

Expand Down Expand Up @@ -102,6 +102,10 @@ $(zip_releases): %.zip : %
all-arch: $(PLATFORM_LIST) $(WINDOWS_ARCH_LIST)

releases: $(tar_releases) $(zip_releases)

clean:
rm -f $(BINDIR)/*
rm -f $(PACKDIR)/*

tag:
git tag v$(VERSION)
Empty file added bin/.gitkeep
Empty file.

0 comments on commit 822a846

Please sign in to comment.