Skip to content

Commit

Permalink
Add goreleaser & publish snapshots to GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
hg committed Jun 25, 2021
1 parent 3a53e79 commit f18bf2e
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 11 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: goreleaser

on:
push:
tags:
- "*"

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: set up go
uses: actions/setup-go@v2
with:
go-version: 1.16

- name: run goreleaser
uses: goreleaser/goreleaser-action@v2
with:
workdir: gateway
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion gateway/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
airmon

dist/
18 changes: 18 additions & 0 deletions gateway/.goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
project_name: airmon-gateway
before:
hooks:
- go mod tidy
builds:
- goos:
- linux
goarch:
- amd64
- arm64
checksum:
name_template: "checksums.txt"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
10 changes: 0 additions & 10 deletions gateway/build.sh

This file was deleted.

0 comments on commit f18bf2e

Please sign in to comment.