Skip to content
This repository was archived by the owner on Jan 31, 2025. It is now read-only.

Commit 1ec8c8b

Browse files
authored
feat(github): add go releaser (#8)
* feat(github): add go releaser * add wasm builds
1 parent 864ad35 commit 1ec8c8b

File tree

3 files changed

+58
-12
lines changed

3 files changed

+58
-12
lines changed

Diff for: .github/workflows/releaser.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Go Releaser
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
permissions:
9+
contents: write # needed to write releases
10+
11+
jobs:
12+
goreleaser:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
19+
- uses: actions/setup-go@v5
20+
with:
21+
go-version: "1.21.x"
22+
cache: true
23+
24+
- uses: goreleaser/goreleaser-action@v6
25+
with:
26+
distribution: goreleaser
27+
version: v1.26.2
28+
args: release --clean
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Diff for: .goreleaser.yaml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
project_name: gnopls
2+
3+
before:
4+
hooks:
5+
- go mod tidy
6+
7+
builds:
8+
- id: gnopls
9+
binary: gnopls
10+
goos:
11+
- linux
12+
- darwin
13+
- js
14+
goarch:
15+
- amd64
16+
- arm64
17+
- wasm
18+
ldflags:
19+
- -s -w -X 'github.com/gnolang/gnopls/internal/version.Version={{.Tag}}'
20+
21+
changelog:
22+
sort: asc
23+
24+
release:
25+
draft: true
26+
replace_existing_draft: true
27+
prerelease: auto
28+
mode: append

Diff for: .goreleaser.yml

-12
This file was deleted.

0 commit comments

Comments
 (0)