Skip to content

Commit

Permalink
gofmt -s + goreleaser for stable
Browse files Browse the repository at this point in the history
  • Loading branch information
VeryStrongFingers committed Jan 15, 2023
1 parent 176a4e5 commit d830291
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
on:
push:
branches:
- main

name: Testing Suite

Expand Down
3 changes: 3 additions & 0 deletions .goreleaser.rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ builds:
goarch:
- amd64
- arm64
flags:
- -trimpath
- -mod=readonly
ldflags:
- -s -w
main: ./cmd/caddy
Expand Down
46 changes: 46 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm64
flags:
- -trimpath
- -mod=readonly
ldflags:
- -s -w
main: ./cmd/caddy
binary: caddy-discord
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
amd64: x86_64
format: binary
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Tag }}-rc"
changelog:
sort: asc
skip: false
use: github-native
filters:
exclude:
- '^docs:'
- '^test:'
release:
draft: true
replace_existing_draft: true
prerelease: auto
mode: append
header: |
## {{ .Tag }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ Loosely inspired from [caddy-security's Discord OAuth2 module](https://authp.git

1. Download caddy + caddy-discord
- Using released binaries
- Docker image
- Build yourself using `xcaddy`
- `xcaddy build --with github.com/enum-gg/caddy-discord`
2. Create Discord Application ([Discord Developer Portal](https://discord.com/developers/applications))
- New Application
- OAuth2
Expand Down
2 changes: 1 addition & 1 deletion realm.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (r Realm) GetAllGuilds() []string {

guildIDs := make([]string, 0, len(guildMap))

for guildID, _ := range guildMap {
for guildID := range guildMap {
guildIDs = append(guildIDs, guildID)
}

Expand Down

0 comments on commit d830291

Please sign in to comment.