Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
daaru00 committed Mar 4, 2021
0 parents commit f42c43f
Show file tree
Hide file tree
Showing 47 changed files with 3,497 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: goreleaser

on:
push:
tags:
- '*'

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.15.x
- name: Get version tag
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Set version
run: sed -i s/VERSION/${{ steps.get_version.outputs.VERSION }}/ main.go
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1
with:
version: latest
args: release --rm-dist --skip-validate
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.env
aws-canary
50 changes: 50 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
release:

builds:
- id: aws-canary
main: main.go
binary: aws-canary
goos:
- windows
- darwin
- linux
goarch:
- amd64
env:
- CGO_ENABLED=0

archives:
- builds:
- aws-canary
replacements:
darwin: Darwin
linux: Linux
windows: Windows
amd64: x86_64
format: tar.gz
format_overrides:
- goos: windows
format: zip

checksum:
name_template: 'checksums.txt'

changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^examples:'

nfpms:
- license: MIT
maintainer: Fabio Gollinucci
description: AWS Synthetics Canary CLI
homepage: https://github.com/daaru00/aws-canary-cli
suggests:
- nodejs
- python
formats:
- rpm
- deb
Loading

0 comments on commit f42c43f

Please sign in to comment.