Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Commit

Permalink
ci: replace CircleCI with GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rdumont committed Mar 28, 2020
1 parent 18acc3c commit bb926bc
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 53 deletions.
53 changes: 0 additions & 53 deletions .circleci/config.yml

This file was deleted.

26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: continuous-integration
on: [push, pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}

steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Verify dependencies
run: go mod verify

- name: Build
shell: bash
run: |
go build -v ./cmd/tog
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: goreleaser

on:
push:
tags:
- "v*"

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1
with:
version: latest
args: release
env:
GITHUB_TOKEN: ${{secrets.RELEASE_GITHUB_TOKEN}}

0 comments on commit bb926bc

Please sign in to comment.