Skip to content

Commit

Permalink
Remove travis dependency in favor of Github Actions (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
mescam committed Dec 18, 2023
1 parent 2bb10d2 commit c033417
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 29 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: Go Build and Release

on:
push:
tags:
- '*'

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.20.x]

steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}

- name: Check out code
uses: actions/checkout@v2
with:
fetch-depth: 1

- name: Verify modules
run: go mod verify

- name: Test
run: go test -v ./...

- name: Build
run: |
mkdir bin
make build
- name: Deploy
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
with:
files: |
bin/assume-role-arn-linux
bin/assume-role-arn-osx
bin/assume-role-arn-osx-arm
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# assume-role-arn
[![Build Status](https://travis-ci.org/nordcloud/assume-role-arn.svg?branch=master)](https://travis-ci.org/nordcloud/assume-role-arn)

assume-role-arn is a simple golang binary that can be used as an `aws --profile`
alternative or in CI/CD pipelines, so you don't need any external dependencies
Expand Down

0 comments on commit c033417

Please sign in to comment.