Skip to content

Commit

Permalink
Merge branch 'main' of github.com:do-community/hacktoberfest-repo-top…
Browse files Browse the repository at this point in the history
…ic-apply into main
  • Loading branch information
MasonEgger committed Oct 2, 2020
2 parents 6cc599a + 7c4e90d commit f631f7d
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release

on:
push:
tags:
- 'v*'

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Unshallow
run: git fetch --prune --unshallow

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.14

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.vscode
dist/
18 changes: 18 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
project_name: hfest-repo
builds:
- env:
- CGO_ENABLED=0
- GO111MODULE=on
binary: hfest-repo
flags:
- -v
goos:
- windows
- darwin
- linux
ignore:
- goos: darwin
goarch: 386

archives:
- format: binary
9 changes: 9 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## Releasing

This repository contains a GitHub Action configured to automatically build and
publish assets for release when a tag is pushed that matches the pattern v*
(ie. v0.1.0). This is done using [Goreleaser](https://goreleaser.com/).

To build a local test a release, run:

goreleaser release --snapshot --rm-dist
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/do-community/do-ansible-inventory
module github.com/do-community/hacktoberfest-repo-topic-apply

go 1.14

Expand Down

0 comments on commit f631f7d

Please sign in to comment.