Commit 8bd7d7b 1 parent 4e94f3a commit 8bd7d7b Copy full SHA for 8bd7d7b
File tree 3 files changed +61
-6
lines changed
3 files changed +61
-6
lines changed Original file line number Diff line number Diff line change 7
7
8
8
permissions :
9
9
contents : write
10
+ packages : write
10
11
11
12
jobs :
12
13
release :
@@ -20,11 +21,19 @@ jobs:
20
21
uses : actions/setup-go@v2
21
22
with :
22
23
go-version : 1.20.0
24
+ - name : Set up Docker Buildx
25
+ uses : docker/setup-buildx-action@v2
26
+ - name : Log in to registry
27
+ run : echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
28
+ - uses : cachix/install-nix-action@v22
29
+ with :
30
+ nix_path : nixpkgs=channel:nixos-unstable
23
31
- name : Run GoReleaser
24
32
uses : goreleaser/goreleaser-action@v2
25
33
with :
26
34
distribution : goreleaser
27
35
version : ${{ env.GITHUB_REF_NAME }}
28
- args : release --rm-dist
36
+ args : release --clean
29
37
env :
30
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
38
+ GITHUB_TOKEN : ${{ secrets.PAT }}
39
+ FURY_TOKEN : ${{ secrets.FURY_TOKEN }}
Original file line number Diff line number Diff line change 1
1
2
2
builds :
3
- - binary : mediumautopost
3
+ - binary : ghs
4
4
goos :
5
5
- darwin
6
6
- linux
@@ -17,15 +17,58 @@ universal_binaries:
17
17
- replace : true
18
18
19
19
brews :
20
- -
21
- name : ghs
20
+ - name : ghs
22
21
homepage : " https://github.com/flexwie/ghs"
23
- tap :
22
+ repository :
24
23
owner : flexwie
25
24
name : homebrew-flexwie
26
25
commit_author :
27
26
name : flexwie
28
27
email : ghs@felixwie.com
28
+ description : " a npx-like script execution for gists"
29
+ license : MIT
30
+ dependencies :
31
+ - gh
29
32
33
+ nfpms :
34
+ - id : aptpackages
35
+ package_name : ghs
36
+ homepage : https://github.com/flexwie/ghs
37
+ maintainer : Felix Wieland <ghs@felixwie.com>
38
+ description : a npx-like script execution for gists
39
+ license : MIT
40
+ formats :
41
+ - deb
42
+ - rpm
43
+ dependencies :
44
+ - gh
45
+ file_name_template : " {{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
46
+
47
+ publishers :
48
+ - name : fury.io
49
+ ids :
50
+ - aptpackages
51
+ cmd : curl -F package=@{{ .ArtifactName }} https://{{ .Env.FURY_TOKEN }}@push.fury.io/flexwie/
52
+ dir : " {{ dir .ArtifactPath }}"
53
+
54
+ dockers :
55
+ - image_templates :
56
+ - ghcr.io/flexwie/ghs:{{ .Tag }}
57
+ - ghcr.io/flexwie/ghs:latest
58
+
59
+ nix :
60
+ - name : ghs
61
+ commit_author :
62
+ name : Felix Wieland
63
+ email : git@felixwie.com
64
+ homepage : https://github.com/flexwie/ghs
65
+ description : a npx-like script execution for gists
66
+ license : MIT
67
+ dependencies :
68
+ - gh
69
+ repository :
70
+ owner : flexwie
71
+ name : nur-packages
72
+
30
73
checksum :
31
74
name_template : ' checksums.txt'
Original file line number Diff line number Diff line change
1
+ FROM scratch
2
+ ENTRYPOINT [ "/ghs" ]
3
+ COPY ghs /
You can’t perform that action at this time.
0 commit comments