Skip to content

Commit 3c1ec8e

Browse files
committed
minor fixes
1 parent 520a52a commit 3c1ec8e

4 files changed

Lines changed: 82 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
goreleaser:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Check out repository
17+
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
21+
- name: Set up Go
22+
uses: actions/setup-go@v5
23+
with:
24+
go-version: 1.25.6
25+
cache: true
26+
27+
- name: Run GoReleaser
28+
uses: goreleaser/goreleaser-action@v7
29+
with:
30+
distribution: goreleaser
31+
version: "~> v2"
32+
args: release --clean
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Binaries
22
hh
33
hh-debug
4+
dist/
45
*.exe
56

67
# Personal data — NEVER commit these

.goreleaser.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
version: 2
2+
3+
project_name: hh
4+
5+
snapshot:
6+
version_template: "{{ incpatch .Version }}-snapshot"
7+
8+
changelog:
9+
use: github-native
10+
11+
builds:
12+
- main: .
13+
binary: hh
14+
mod_timestamp: "{{ .CommitTimestamp }}"
15+
env:
16+
- CGO_ENABLED=0
17+
flags:
18+
- -trimpath
19+
goos:
20+
- linux
21+
- darwin
22+
- windows
23+
goarch:
24+
- amd64
25+
- arm64
26+
27+
archives:
28+
- name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
29+
formats: [tar.gz]
30+
format_overrides:
31+
- goos: windows
32+
formats: [zip]
33+
34+
checksum:
35+
name_template: "checksums.txt"
36+
algorithm: sha256

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# hh-submitter
22

3-
[![CI](https://github.com/wintermute/hh-submitter/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/wintermute/hh-submitter/actions/workflows/ci.yml)
3+
[![CI](https://img.shields.io/github/actions/workflow/status/wintermute/hh-submitter/ci.yml?branch=master&logo=githubactions&logoColor=white)](https://github.com/wintermute/hh-submitter/actions/workflows/ci.yml)
4+
[![GoReleaser](https://img.shields.io/badge/GoReleaser-releases-00ADD8?logo=goreleaser&logoColor=white)](https://github.com/wintermute/hh-submitter/releases)
45
[![Go 1.25.6](https://img.shields.io/badge/Go-1.25.6-00ADD8?logo=go&logoColor=white)](https://go.dev/dl/)
56
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
67

@@ -14,12 +15,20 @@ This repository is organized as a public project, so the README focuses on insta
1415

1516
Module path: `github.com/wintermute/hh-submitter`
1617

17-
### Install from source release
18+
### Install from source
1819

1920
```bash
2021
go install github.com/wintermute/hh-submitter@latest
2122
```
2223

24+
### Download a tagged release
25+
26+
Tagged `v*` releases are published by GoReleaser on GitHub Releases as `hh_<version>_<os>_<arch>.tar.gz` archives for Linux and macOS, `hh_<version>_<os>_<arch>.zip` archives for Windows, and a `checksums.txt` file. The archive version is derived from the tag version.
27+
28+
Сборки тегов `v*` публикуются в GitHub Releases как архивы для Linux, macOS и Windows на `amd64`/`arm64` вместе с `checksums.txt`.
29+
30+
Pick the archive that matches your platform, unpack it, and place the `hh` binary on your `PATH`.
31+
2332
### Build from source
2433

2534
```bash

0 commit comments

Comments
 (0)