mirror of
https://github.com/ivuorinen/gh-action-readme.git
synced 2026-03-17 02:01:38 +00:00
fix(ci): update goreleaser (#132)
* fix(ci): update goreleaser * fix(ci): migrate to new goreleaser config, disable brew for now * chore(ci): address pr comments
This commit is contained in:
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@@ -14,8 +14,10 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
|
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
|
||||||
- name: Install dependencies
|
- name: Run golangci-lint
|
||||||
run: go mod tidy
|
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
|
||||||
|
with:
|
||||||
|
version: v2.7.2
|
||||||
- name: Setup Node.js for EditorConfig tools
|
- name: Setup Node.js for EditorConfig tools
|
||||||
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
|
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
|
||||||
with:
|
with:
|
||||||
|
|||||||
115
.goreleaser.yaml
115
.goreleaser.yaml
@@ -10,8 +10,6 @@ before:
|
|||||||
hooks:
|
hooks:
|
||||||
# Run tests before building
|
# Run tests before building
|
||||||
- go test ./...
|
- go test ./...
|
||||||
# Run linter
|
|
||||||
- golangci-lint run
|
|
||||||
# Ensure dependencies are tidy
|
# Ensure dependencies are tidy
|
||||||
- go mod tidy
|
- go mod tidy
|
||||||
|
|
||||||
@@ -47,11 +45,11 @@ builds:
|
|||||||
|
|
||||||
archives:
|
archives:
|
||||||
- id: default
|
- id: default
|
||||||
format: tar.gz
|
formats: [tar.gz]
|
||||||
# Use zip for Windows
|
# Use zip for Windows
|
||||||
format_overrides:
|
format_overrides:
|
||||||
- goos: windows
|
- goos: windows
|
||||||
format: zip
|
formats: [zip]
|
||||||
name_template: >-
|
name_template: >-
|
||||||
{{ .ProjectName }}_ {{- title .Os }}_ {{- if eq .Arch "amd64" }}x86_64 {{- else if eq .Arch "386" }}i386 {{- else }}{{ .Arch }}{{ end }} {{- if .Arm }}v{{ .Arm }}{{ end }}
|
{{ .ProjectName }}_ {{- title .Os }}_ {{- if eq .Arch "amd64" }}x86_64 {{- else if eq .Arch "386" }}i386 {{- else }}{{ .Arch }}{{ end }} {{- if .Arm }}v{{ .Arm }}{{ end }}
|
||||||
files:
|
files:
|
||||||
@@ -66,7 +64,7 @@ checksum:
|
|||||||
name_template: 'checksums.txt'
|
name_template: 'checksums.txt'
|
||||||
|
|
||||||
snapshot:
|
snapshot:
|
||||||
name_template: "{{ incpatch .Version }}-next"
|
version_template: "{{ incpatch .Version }}-next"
|
||||||
|
|
||||||
changelog:
|
changelog:
|
||||||
sort: asc
|
sort: asc
|
||||||
@@ -146,29 +144,31 @@ release:
|
|||||||
Thanks to all contributors who made this release possible!
|
Thanks to all contributors who made this release possible!
|
||||||
|
|
||||||
# Homebrew tap
|
# Homebrew tap
|
||||||
brews:
|
# TODO: Re-enable once we can properly support homebrew_casks with data files
|
||||||
- name: gh-action-readme
|
# or find an alternative packaging solution for templates/schemas
|
||||||
homepage: https://github.com/ivuorinen/gh-action-readme
|
# brews:
|
||||||
description: "Auto-generate beautiful README and HTML documentation for GitHub Actions"
|
# - name: gh-action-readme
|
||||||
license: MIT
|
# homepage: https://github.com/ivuorinen/gh-action-readme
|
||||||
repository:
|
# description: "Auto-generate beautiful README and HTML documentation for GitHub Actions"
|
||||||
owner: ivuorinen
|
# license: MIT
|
||||||
name: homebrew-tap
|
# repository:
|
||||||
branch: main
|
# owner: ivuorinen
|
||||||
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
|
# name: homebrew-tap
|
||||||
directory: Formula
|
# branch: main
|
||||||
commit_author:
|
# token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
|
||||||
name: goreleaserbot
|
# directory: Formula
|
||||||
email: bot@goreleaser.com
|
# commit_author:
|
||||||
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
|
# name: goreleaserbot
|
||||||
install: |
|
# email: bot@goreleaser.com
|
||||||
bin.install "gh-action-readme"
|
# commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
|
||||||
|
# install: |
|
||||||
# Install templates and schemas
|
# bin.install "gh-action-readme"
|
||||||
(share/"gh-action-readme/templates").install Dir["templates/*"]
|
#
|
||||||
(share/"gh-action-readme/schemas").install Dir["schemas/*"]
|
# # Install templates and schemas
|
||||||
test: |
|
# (share/"gh-action-readme/templates").install Dir["templates/*"]
|
||||||
system "#{bin}/gh-action-readme", "version"
|
# (share/"gh-action-readme/schemas").install Dir["schemas/*"]
|
||||||
|
# test: |
|
||||||
|
# system "#{bin}/gh-action-readme", "version"
|
||||||
|
|
||||||
# Scoop bucket for Windows (disabled - repository doesn't exist)
|
# Scoop bucket for Windows (disabled - repository doesn't exist)
|
||||||
# scoops:
|
# scoops:
|
||||||
@@ -185,50 +185,23 @@ brews:
|
|||||||
# email: bot@goreleaser.com
|
# email: bot@goreleaser.com
|
||||||
# commit_msg_template: "Scoop update for {{ .ProjectName }} version {{ .Tag }}"
|
# commit_msg_template: "Scoop update for {{ .ProjectName }} version {{ .Tag }}"
|
||||||
|
|
||||||
# Docker images
|
# Docker images (using dockers_v2 with multi-platform buildx)
|
||||||
dockers:
|
dockers_v2:
|
||||||
- image_templates:
|
- images:
|
||||||
- "ghcr.io/ivuorinen/gh-action-readme:{{ .Version }}-amd64"
|
- "ghcr.io/ivuorinen/gh-action-readme"
|
||||||
- "ghcr.io/ivuorinen/gh-action-readme:latest-amd64"
|
tags:
|
||||||
|
- "{{ .Version }}"
|
||||||
|
- "latest"
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
use: buildx
|
platforms:
|
||||||
build_flag_templates:
|
- linux/amd64
|
||||||
- "--pull"
|
- linux/arm64
|
||||||
- "--label=org.opencontainers.image.created={{.Date}}"
|
labels:
|
||||||
- "--label=org.opencontainers.image.title={{.ProjectName}}"
|
org.opencontainers.image.created: "{{.Date}}"
|
||||||
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
|
org.opencontainers.image.title: "{{.ProjectName}}"
|
||||||
- "--label=org.opencontainers.image.version={{.Version}}"
|
org.opencontainers.image.revision: "{{.FullCommit}}"
|
||||||
- "--label=org.opencontainers.image.source=https://github.com/ivuorinen/gh-action-readme"
|
org.opencontainers.image.version: "{{.Version}}"
|
||||||
- "--platform=linux/amd64"
|
org.opencontainers.image.source: "https://github.com/ivuorinen/gh-action-readme"
|
||||||
goos: linux
|
|
||||||
goarch: amd64
|
|
||||||
|
|
||||||
- image_templates:
|
|
||||||
- "ghcr.io/ivuorinen/gh-action-readme:{{ .Version }}-arm64"
|
|
||||||
- "ghcr.io/ivuorinen/gh-action-readme:latest-arm64"
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
use: buildx
|
|
||||||
build_flag_templates:
|
|
||||||
- "--pull"
|
|
||||||
- "--label=org.opencontainers.image.created={{.Date}}"
|
|
||||||
- "--label=org.opencontainers.image.title={{.ProjectName}}"
|
|
||||||
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
|
|
||||||
- "--label=org.opencontainers.image.version={{.Version}}"
|
|
||||||
- "--label=org.opencontainers.image.source=https://github.com/ivuorinen/gh-action-readme"
|
|
||||||
- "--platform=linux/arm64"
|
|
||||||
goos: linux
|
|
||||||
goarch: arm64
|
|
||||||
|
|
||||||
docker_manifests:
|
|
||||||
- name_template: "ghcr.io/ivuorinen/gh-action-readme:{{ .Version }}"
|
|
||||||
image_templates:
|
|
||||||
- "ghcr.io/ivuorinen/gh-action-readme:{{ .Version }}-amd64"
|
|
||||||
- "ghcr.io/ivuorinen/gh-action-readme:{{ .Version }}-arm64"
|
|
||||||
|
|
||||||
- name_template: "ghcr.io/ivuorinen/gh-action-readme:latest"
|
|
||||||
image_templates:
|
|
||||||
- "ghcr.io/ivuorinen/gh-action-readme:latest-amd64"
|
|
||||||
- "ghcr.io/ivuorinen/gh-action-readme:latest-arm64"
|
|
||||||
|
|
||||||
# Signing
|
# Signing
|
||||||
signs:
|
signs:
|
||||||
|
|||||||
Reference in New Issue
Block a user