-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add gh workflow and drop travis config
- Loading branch information
Showing
3 changed files
with
61 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: publish | ||
|
||
on: | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
- name: setup | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: "1.15" | ||
- name: build | ||
run: | | ||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o imago-linux-amd64 | ||
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o imago-darwin-amd64 | ||
- uses: actions/upload-release-asset@v1 | ||
if: >- | ||
github.event_name == 'release' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: imago-linux-amd64 | ||
- uses: actions/upload-release-asset@v1 | ||
if: >- | ||
github.event_name == 'release' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: imago-darwin-amd64 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- "master" | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
- name: setup | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: "1.15" | ||
- name: lint | ||
uses: golangci/golangci-lint-action@v2 | ||
- name: build | ||
run: | | ||
go build |
This file was deleted.
Oops, something went wrong.