diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d2cb51d..bb5dc0b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -47,6 +47,9 @@ jobs: GIT_AUTHOR_NAME: Actions Automation GIT_AUTHOR_EMAIL: run: | - git add -f dist + git add dist + git restore --staged dist/config.yaml git commit -m "Add artifacts for ${GITHUB_REF#refs/tags/}" - git push origin HEAD:trunk + if [[ $GITHUB_REF != *-* ]]; then + git push origin HEAD:trunk + fi diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 849ddff..0000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -dist/ diff --git a/.goreleaser.yml b/.goreleaser.yml index a49aa44..867c40d 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -30,5 +30,7 @@ signs: "--detach-sign", "${artifact}" ] +changelog: + skip: true release: prerelease: auto diff --git a/dist/CHANGELOG.md b/dist/CHANGELOG.md deleted file mode 100644 index 2df04a4..0000000 --- a/dist/CHANGELOG.md +++ /dev/null @@ -1,3 +0,0 @@ -## Changelog - -7dc5de1 gh-repo-explore extension diff --git a/dist/config.yaml b/dist/config.yaml deleted file mode 100644 index 4ba8f6c..0000000 --- a/dist/config.yaml +++ /dev/null @@ -1,107 +0,0 @@ -project_name: gh-repo-explore -release: - github: - owner: samcoe - name: gh-repo-explore - prerelease: auto - name_template: '{{.Tag}}' -milestones: -- repo: - owner: samcoe - name: gh-repo-explore - name_template: '{{ .Tag }}' -scoop: - name: gh-repo-explore - commit_author: - name: goreleaserbot - email: goreleaser@carlosbecker.com - commit_msg_template: Scoop update for {{ .ProjectName }} version {{ .Tag }} -builds: -- id: gh-repo-explore - goos: - - darwin - - linux - - windows - goarch: - - "386" - - amd64 - goarm: - - "6" - gomips: - - hardfloat - targets: - - darwin_amd64 - - linux_386 - - linux_amd64 - - windows_386 - - windows_amd64 - dir: . - main: . - ldflags: - - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} - -X main.builtBy=goreleaser - binary: gh-repo-explore - env: - - CGO_ENABLED=0 - lang: go - gobinary: go -archives: -- id: default - builds: - - gh-repo-explore - name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm - }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}' - format: tar.gz - format_overrides: - - goos: windows - format: zip - wrap_in_directory: "true" - files: - - licence* - - LICENCE* - - license* - - LICENSE* - - readme* - - README* - - changelog* - - CHANGELOG* - allow_different_binary_count: false -snapshot: - name_template: '{{ .Tag }}-SNAPSHOT-{{ .ShortCommit }}' -checksum: - name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt' - algorithm: sha256 -dist: dist -signs: -- id: default - cmd: gpg - args: - - --batch - - -u - - '{{ .Env.GPG_FINGERPRINT }}' - - --output - - ${signature} - - --detach-sign - - ${artifact} - signature: ${artifact}.sig - artifacts: checksum -env_files: - github_token: ~/.config/goreleaser/github_token - gitlab_token: ~/.config/goreleaser/gitlab_token - gitea_token: ~/.config/goreleaser/gitea_token -before: - hooks: - - go mod tidy -source: - name_template: '{{ .ProjectName }}-{{ .Version }}' - format: tar.gz -gomod: - gobinary: go -announce: - twitter: - message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .GitURL - }}/releases/tag/{{ .Tag }}' -github_urls: - download: https://github.com -gitlab_urls: - download: https://gitlab.com