Skip to content

Commit

Permalink
✨ Add Go Releaser
Browse files Browse the repository at this point in the history
  • Loading branch information
UltiRequiem committed Sep 7, 2021
1 parent c98f30d commit 7c99ef4
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: goreleaser

on:
push:
tags:
- "*"

permissions:
contents: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ A simple and extensible [yaml](https://yaml.org) formatter.

## Installation

With Go Install:

```bash
go install github.com/UltiRequiem/yamlfmt@latest
```


## Usage

- To format one or more files and write to stdout:
Expand Down Expand Up @@ -52,4 +59,4 @@ please open a pull requests or issue with the information.

#### License

This project is licensed under the[MIT license](./LICENSE.md)
This project is licensed under the [MIT license](./LICENSE.md)

0 comments on commit 7c99ef4

Please sign in to comment.