-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
98 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Release | ||
on: | ||
push: | ||
tags: | ||
- "*" | ||
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 | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v2 | ||
with: | ||
version: latest | ||
args: release --rm-dist | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GORELEASER }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# This is an example goreleaser.yaml file with some sane defaults. | ||
# Make sure to check the documentation at http://goreleaser.com | ||
project_name: astral | ||
|
||
before: | ||
hooks: | ||
- go mod download | ||
builds: | ||
- main: ./cmd/astral/main.go | ||
id: "astral" | ||
env: | ||
- CGO_ENABLED=0 | ||
- GO111MODULE=on | ||
goos: | ||
- linux | ||
- darwin | ||
- freebsd | ||
- openbsd | ||
- netbsd | ||
- solaris | ||
- dragonfly | ||
- windows | ||
goarch: | ||
- 386 | ||
- amd64 | ||
- arm | ||
- arm64 | ||
goarm: | ||
- 6 | ||
- 7 | ||
archives: | ||
- id: astral | ||
builds: | ||
- astral | ||
wrap_in_directory: true | ||
format_overrides: | ||
- goos: windows | ||
format: zip | ||
files: | ||
- LICENSE | ||
- AUTHORS | ||
- README.md | ||
checksum: | ||
name_template: "checksums.txt" | ||
snapshot: | ||
name_template: "{{ .Tag }}-next-{{.Commit}}" | ||
nfpms: | ||
- maintainer: Simon Jürgensmeyyer <[email protected]> | ||
homepage: https://github.com/sj14/astral/ | ||
description: Calculations for the position of the sun and moon. | ||
license: Apache License 2.0 | ||
formats: | ||
- deb | ||
- rpm | ||
builds: | ||
- astral | ||
brews: | ||
- name: astral | ||
ids: | ||
- astral | ||
tap: | ||
owner: sj14 | ||
name: homebrew-tap | ||
description: Calculations for the position of the sun and moon. | ||
release: | ||
github: | ||
owner: sj14 | ||
name: astral | ||
disable: false | ||
draft: false | ||
prerelease: false | ||
changelog: | ||
filters: | ||
exclude: | ||
- typo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters