Skip to content

Commit

Permalink
add release config
Browse files Browse the repository at this point in the history
  • Loading branch information
kaz committed Jul 18, 2022
1 parent b675cce commit eb6f1c3
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 6 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Publish release

on:
push:
tags:
- "*"

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version-file: go.mod
- uses: goreleaser/goreleaser-action@v3
with:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
name: build and push docker image
name: Push docker image

on:
push:
branches:
- master

jobs:
build_and_push:
push:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v2
- uses: docker/login-action@v1
- uses: actions/checkout@v3
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand Down
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/pprotein
/pprotein-mock
/pprotein-agent

/data
/data/
/dist/
39 changes: 39 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
before:
hooks:
- go mod tidy
- npm --prefix view ci
- npm --prefix view run build
builds:
- id: pprotein
binary: pprotein
main: ./cli/pprotein
flags:
- -trimpath
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- amd64
- arm64
- id: pprotein-agent
binary: pprotein-agent
main: ./cli/pprotein-agent
flags:
- -trimpath
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- amd64
- arm64
archives:
- files:
- nothing*
checksum:
disable: true
changelog:
skip: true

0 comments on commit eb6f1c3

Please sign in to comment.