diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..b20ea0c --- /dev/null +++ b/.github/workflows/release.yml @@ -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 }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 4d39c58..0000000 --- a/.travis.yml +++ /dev/null @@ -1,28 +0,0 @@ -language: go -go: -- 1.20.x -env: -- GO111MODULE=on CGO_ENABLED=0 -git: - depth: 1 -notifications: - email: false -install: true -before_script: -- go mod verify -script: -- go test -v ./... -- mkdir bin -- make build -deploy: - provider: releases - api_key: - secure: g/yxi0+dM6cGgliVDrOkvMUuLlHbSrQfz9xRsIKAFJPaIJFeTaeNfhpjzIvE+ubjjfmRYMPeFchFPVH7akWkW0JnppjbjsQdrdQy1ay4fdFxff6nPbqy8q49hqlJZ7P8/Xb6dlFk2IePvHpEzRt9UmEQMQM13MPt/B97rsyVRtvPCfBQ1of2JeNR3UzKodMbNhm/imZ1V9O6oJqb7iiaqIozQoTQac1GWsL6A+OsHYk27tIJZvTfEm9O0/jPpRE96x2ed/sscHczPEoKHgRht/zmYdUR19hXNjkPTy5AmMK3nVKlUfjc9b4v0p+yz7Z76lDlxgYE3foZUUaCSPUnmUjEowD10ym+1oYxMhRKKk6fnGSzonGU+7GzfjRqSP8iHMbmGbF0L7WthrnzmyWwkMguWV8ocwwYsSAZmQ3FoKSS4l/ZWU6BkoH+Vh0gId2Re96t9lkUnnd1m4hlF+iFIoKm7r24SeUwjq37pfo6h4t5F885KdVU+TREA39AIvo3gRp1HvcjgSOCmXgEtLXbkTyuonhTFtdxIbGNk1CT/1eccrx+nTghT9Cqz5SYCwP/aPoZg8fpf33lQKj1BeE9aU+OkRzA0O05we3vKAs7z8Yx5ME5cIGHLjqaYo7Do6UgfZqwz5BVQVvyS3v4HAVX8Eu8aPcHUIL5hymqP27dW2Y= - file: - - bin/assume-role-arn-linux - - bin/assume-role-arn-osx - - bin/assume-role-arn-osx-arm - on: - tags: true - repo: nordcloud/assume-role-arn - skip_cleanup: 'true' diff --git a/README.md b/README.md index e920d96..94ca427 100644 --- a/README.md +++ b/README.md @@ -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