Skip to content

Commit

Permalink
Adding release pipeline to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
matang28 committed Nov 25, 2019
1 parent 64b3f5e commit 87a6071
Showing 1 changed file with 45 additions and 1 deletion.
46 changes: 45 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
on: [push, pull_request]
name: Test
name: Packman CI/CD
jobs:
test:
strategy:
Expand All @@ -15,4 +15,48 @@ jobs:
- name: Checkout code
uses: actions/checkout@v1
- name: Test
env:
USERNAME: ${{ secrets.USERNAME }}
PASSWORD: ${{ secrets.PASSWORD }}
run: go test ./...

build:
release-linux-amd64:
name: release linux/amd64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Go
uses: actions/setup-go@v1
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1
with:
version: latest
args: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOARCH: amd64
GOOS: linux
# release-darwin-amd64:
# name: release darwin/amd64
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@master
# - name: compile and release
# uses: ngs/[email protected]
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# GOARCH: amd64
# GOOS: darwin
# release-windows-amd64:
# name: release windows/amd64
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@master
# - name: compile and release
# uses: ngs/[email protected]
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# GOARCH: amd64
# GOOS: windows
#

0 comments on commit 87a6071

Please sign in to comment.