Skip to content

Commit e06a658

Browse files
feat: Add GitHub Actions for PNG generation and GoReleaser
Adds two GitHub Actions workflows: - A workflow to automatically regenerate the `vim-barcodes-a4.png` file when any Go file is modified on the main branch. This ensures the PNG is always up-to-date with the code. - A GoReleaser workflow that triggers on new version tags (e.g., v1.2.3) to create a new release with binaries for multiple platforms, including .deb and .rpm packages. Also adds a `.goreleaser.yml` configuration file to customize the release process. The Go version for the workflows is dynamically determined from the `go.mod` file.
1 parent 7a30e01 commit e06a658

3 files changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/generate-png.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up Go
1818
uses: actions/setup-go@v4
1919
with:
20-
go-version: '1.20'
20+
go-version-file: 'go.mod'
2121

2222
- name: Install dependencies
2323
run: go get .

.github/workflows/goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up Go
1818
uses: actions/setup-go@v4
1919
with:
20-
go-version: '1.20'
20+
go-version-file: 'go.mod'
2121

2222
- name: Run GoReleaser
2323
uses: goreleaser/goreleaser-action@v4

.goreleaser.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,15 @@ changelog:
2626
exclude:
2727
- '^docs:'
2828
- '^test:'
29+
nfpms:
30+
-
31+
id: "vim-barcode-sheet"
32+
package_name: "vim-barcode-sheet"
33+
homepage: "https://github.com/arran4/vim-barcode-sheet"
34+
maintainer: "Arran Ubels <[email protected]>"
35+
description: "Vim barcode sheet generator."
36+
license: "MIT"
37+
formats:
38+
- "deb"
39+
- "rpm"
40+
bindir: "/usr/bin"

0 commit comments

Comments
 (0)