Skip to content

Commit

Permalink
Merge pull request rapidpro#306 from nyaruka/non_master_releases
Browse files Browse the repository at this point in the history
Allow non-master releases
  • Loading branch information
rowanseymour authored Jun 1, 2020
2 parents 04a2c90 + cd73a30 commit 95321cd
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: CI
on: [push, pull_request]
env:
go-version: '1.14.x'
jobs:
test:
name: Test
Expand Down Expand Up @@ -27,7 +29,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: 1.13.x
go-version: ${{ env.go-version }}

- name: Run tests
run: go test -p=1 -coverprofile=coverage.text -covermode=atomic ./...
Expand All @@ -50,12 +52,22 @@ jobs:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: 1.13.x
go-version: ${{ env.go-version }}

- name: Publish release
uses: goreleaser/goreleaser-action@v1
if: ${{ !contains(github.ref, '-') }}
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish non-master release
uses: goreleaser/goreleaser-action@v1
if: contains(github.ref, '-')
with:
version: latest
args: release --rm-dist --skip-validate
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 95321cd

Please sign in to comment.