Skip to content

Commit

Permalink
Merge pull request #47 from ztreinhart/feat/goreleaser-release-action
Browse files Browse the repository at this point in the history
feat: Add release action
  • Loading branch information
ztreinhart authored Apr 7, 2021
2 parents 037a5e5 + 9c18c5a commit 5281c8f
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: release

on:
release:
types: [published]

jobs:

build:
name: build
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Cache Go
id: go-cache
uses: actions/[email protected]
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys:
${{ runner.os }}-go-

- name: test
run: |
sudo apt install -y bash libpcap-dev jq
make test-host
- name: Login to ghcr.io
uses: docker/login-action@v1
with:
registry: ghcr.io
username: vcr-bot
password: ${{ secrets.GHCR_TOKEN }}

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release
env:
GITHUB_TOKEN: ${{ secrets.GHCR_TOKEN }}

0 comments on commit 5281c8f

Please sign in to comment.