Skip to content

Commit

Permalink
Use GoReleaser to create GitHub releases with a changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
nineinchnick authored and losipiuk committed Jul 18, 2022
1 parent 4727210 commit cc992c5
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: release

on:
push:
# run only against tags
tags:
- '*'

permissions:
contents: read

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Fetch all tags
run: git fetch --force --tags

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
cache: true

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
distribution: goreleaser
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,2 +1,3 @@
coverage.out
.idea
/dist
2 changes: 2 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
builds:
- skip: true
4 changes: 4 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ In order to accept your pull request, we need you to [submit a CLA](https://gith
## License

By contributing to Trino, you agree that your contributions will be licensed under the [Apache License Version 2.0 (APLv2)](LICENSE).

# Releases

To create a new release, a maintainer with repository write permissions needs to create and push a new git tag.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,3 +249,7 @@ will receive a `[]interface{}` slice, with values of the following types:
## License

As described in the [LICENSE](./LICENSE) file.

## Contributing

For contributing, development, and release guidelines, see [CONTRIBUTING.md](./CONTRIBUTING.md).

0 comments on commit cc992c5

Please sign in to comment.