Skip to content

Commit

Permalink
Merge pull request #17 from gliptak/actions1
Browse files Browse the repository at this point in the history
Add Github Actions build
  • Loading branch information
Acconut authored Dec 30, 2021
2 parents fdccc29 + c5d18cf commit deea719
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 36 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: ci

on:
push:
branches:
- master
pull_request:

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
go-version: [1.17]

steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- uses: goreleaser/goreleaser-action@v2
with:
args: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v2
with:
name: json2hcl
path: dist/*
9 changes: 9 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
builds:
-
goos:
- windows
- darwin
- linux
goarch:
- amd64
- arm64
36 changes: 0 additions & 36 deletions .travis.yml

This file was deleted.

5 changes: 5 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module github.com/kvz/json2hcl

go 1.17

require github.com/hashicorp/hcl v1.0.0
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4=
github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=

0 comments on commit deea719

Please sign in to comment.