Skip to content

Commit e0e3c0d

Browse files
committed
update
0 parents  commit e0e3c0d

25 files changed

+1940
-0
lines changed

Diff for: .github/workflows/release.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: Set up Golang
19+
uses: actions/setup-go@v3
20+
with:
21+
go-version: v1.20.3
22+
- name: Build
23+
run: make
24+
- name: Set current date as env variable
25+
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
26+
- name: Upload Release
27+
uses: softprops/action-gh-release@v1
28+
with:
29+
tag_name: nightly-tag-${{ env.date }}
30+
name: release-${{ env.date }}
31+
files: bin/*
32+
draft: false
33+

Diff for: .gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
./smithy
3+
4+
bin/

Diff for: Makefile

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
BINARY_NAME=bin/smithy
2+
3+
build:
4+
GOARCH=arm64 GOOS=darwin go build -ldflags="-s -w" -o ${BINARY_NAME}-darwin-arm64
5+
GOARCH=amd64 GOOS=darwin go build -ldflags="-s -w" -o ${BINARY_NAME}-darwin-amd64
6+
GOARCH=amd64 GOOS=linux go build -ldflags="-s -w" -o ${BINARY_NAME}-linux
7+
GOARCH=amd64 GOOS=windows go build -ldflags="-s -w" -o ${BINARY_NAME}-amd64.exe
8+
9+
clean:
10+
go clean
11+
rm ${BINARY_NAME}-darwin
12+
rm ${BINARY_NAME}-linux
13+
rm ${BINARY_NAME}-x64.exe

0 commit comments

Comments
 (0)