Skip to content

Commit

Permalink
(feat): change travis ci to github actions (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucassabreu authored Jun 17, 2021
1 parent 541d1a9 commit 5839f22
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 28 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: goreleaser

on:
pull_request:
push:
tags:
- '*'

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v2
-
uses: actions/setup-go@v2
with:
go-version: 1.16
-
run: |
sudo apt-get update
sudo apt-get -yq --no-install-suggests --no-install-recommends install snapcraft
mkdir -p $HOME/.cache/snapcraft/download
mkdir -p $HOME/.cache/snapcraft/stage-packages
-
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
install-only: true
-
if: startsWith(github.ref, 'refs/tags/')
run: |
snapcraft login --with <(echo "${{ secrets.SNAPCRAFT_LOGIN }}")
make release "tag=${GITHUB_REF#refs/tags/}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
if: startsWith(github.ref, 'refs/tags/') == false
run: make release SNAPSHOT=1 tag=Unreleased
28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.

6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [v0.17.1] - 2021-06-16

### Changed

- changing travis ci for gihub actions, seens easier to use and one less login to handle

## [v0.17.0] - 2021-06-16

### Added
Expand Down

0 comments on commit 5839f22

Please sign in to comment.