Skip to content

Commit

Permalink
Setup GoReleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
wata727 committed Sep 22, 2020
1 parent 4e1e69c commit d16f2e9
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 0 deletions.
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: release

on:
push:
branches:
- '!*'
tags:
- v*.*.*

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/[email protected]
with:
go-version: 1.15
- name: Run GoReleaser
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: v0.143.0
run: curl -sL https://git.io/goreleaser | bash
33 changes: 33 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
env:
- CGO_ENABLED=0
builds:
- goos:
- linux
- darwin
- freebsd
- netbsd
- openbsd
- windows
goarch:
- 386
- amd64
- arm
archives:
- id: zip
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
format: zip
files:
- none*
changelog:
skip: true
checksum:
name_template: 'checksums.txt'
release:
github:
owner: terraform-linters
name: tflint-ruleset-google
draft: true
snapshot:
name_template: "{{ .Tag }}-dev"
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# TFLint Ruleset for terraform-provider-google
[![Build Status](https://github.com/terraform-linters/tflint-ruleset-google/workflows/build/badge.svg?branch=master)](https://github.com/terraform-linters/tflint-ruleset-google/actions)
[![GitHub release](https://img.shields.io/github/release/terraform-linters/tflint-ruleset-google.svg)](https://github.com/terraform-linters/tflint-ruleset-google/releases/latest)
[![License: MPL 2.0](https://img.shields.io/badge/License-MPL%202.0-blue.svg)](LICENSE)

TFLint ruleset plugin for Terraform Google Cloud Platform provider

Expand Down

0 comments on commit d16f2e9

Please sign in to comment.