Skip to content

Commit e1846cd

Browse files
committed
ci: Add goreleaser
1 parent 8d45618 commit e1846cd

File tree

5 files changed

+70
-3
lines changed

5 files changed

+70
-3
lines changed

.github/.goreleaser.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
2+
3+
version: 2
4+
5+
# https://goreleaser.com/customization/builds/go
6+
builds:
7+
- env:
8+
- CGO_ENABLED=0
9+
goarch:
10+
- amd64
11+
- arm64
12+
13+
# https://goreleaser.com/customization/archive
14+
archives:
15+
- formats: [tar.gz]
16+
# this name template makes the OS and Arch compatible with the results of `uname`.
17+
name_template: >-
18+
{{ .ProjectName }}_
19+
{{- title .Os }}_
20+
{{- if eq .Arch "amd64" }}x86_64
21+
{{- else }}{{ .Arch }}{{ end }}
22+
{{- if .Arm }}v{{ .Arm }}{{ end }}
23+
# use zip for windows archives
24+
format_overrides:
25+
- goos: windows
26+
formats: [zip]

.github/release-please-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"release-type": "simple",
66
"bump-minor-pre-major": true,
77
"include-v-in-tag": true,
8-
"initial-version": "0.1.0"
8+
"extra-files": ["README.md"]
99
}
1010
}
1111
}

.github/workflows/assets.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# yaml-language-server: $schema=https://www.schemastore.org/github-workflow.json
2+
name: Assets
3+
on:
4+
push:
5+
tags: ["v*"]
6+
jobs:
7+
release:
8+
name: Assets
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Create app token
12+
uses: actions/create-github-app-token@v2
13+
id: app-token
14+
with:
15+
app-id: ${{ vars.APP_ID }}
16+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
17+
- name: Upload artifacts
18+
uses: goreleaser/goreleaser-action@v6
19+
with:
20+
version: '~> v2'
21+
args: release --config .github/.goreleaser.yaml
22+
env:
23+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/tmp/
22
*.test
3-
gdshader-language-server
3+
/gdshader-language-server
4+
/dist/

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,28 @@ Godot's shader language is powerful, but editing `.gdshader` files outside the
1616
Godot editor is painful. This project aims to bring proper language tooling
1717
(autocomplete, hover, references, etc.) to editors like Neovim and VSCode.
1818

19+
## 🌱 Prior Work
20+
21+
[@GodOfAvacyn](https://github.com/GodOfAvacyn) is the wonderful author of the
22+
[treesitter plugin](https://github.com/GodOfAvacyn/tree-sitter-gdshader) and
23+
[language server](https://github.com/GodOfAvacyn/gdshader-lsp) for the Godot
24+
shader language. Their treesitter plugin is great! As of writing, their
25+
language server has many false positive diagnostics, and the project became
26+
inactive while they were
27+
[working on a full rewrite](https://github.com/GodOfAvacyn/gdshader-lsp/issues/3#issuecomment-2176364609).
28+
I decided to start this new project to fill the gap for myself.
29+
1930
## 📦 Install
2031

2132
### Neovim
2233

23-
1. Install from source:
34+
1. Install by downloading the latest release or building from source:
35+
36+
```shell
37+
wget https://github.com/armsnyder/gdshader-language-server/releases/latest/download/gdshader-language-server_$(uname -s)_$(uname -m).tar.gz
38+
```
39+
40+
_or_
2441

2542
```shell
2643
go install github.com/armsnyder/gdshader-language-server@latest

0 commit comments

Comments
 (0)