Skip to content

Commit

Permalink
Add gh workflow and drop travis config
Browse files Browse the repository at this point in the history
  • Loading branch information
philpep committed Dec 18, 2021
1 parent 84b3e0b commit 3bd0f59
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 18 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/publish.yml
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

23 changes: 23 additions & 0 deletions .github/workflows/test.yml
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
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

0 comments on commit 3bd0f59

Please sign in to comment.