Skip to content

Commit da7a0bc

Browse files
committed
build: add github actions
1 parent 1cc1377 commit da7a0bc

2 files changed

Lines changed: 58 additions & 0 deletions

File tree

.github/workflows/release.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
8+
permissions:
9+
contents: write
10+
id-token: write
11+
12+
jobs:
13+
goreleaser:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
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: stable
25+
26+
- name: Run GoReleaser
27+
uses: goreleaser/goreleaser-action@v6
28+
with:
29+
version: "~> v2"
30+
args: release --clean
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
version: 2
2+
3+
builds:
4+
- id: git-credential-github-app
5+
binary: git-credential-github-app
6+
main: ./cmd/git-credential-github-app
7+
goos:
8+
- linux
9+
- darwin
10+
goarch:
11+
- amd64
12+
- arm64
13+
14+
- id: git-credential-github-app-gcpkms
15+
binary: git-credential-github-app-gcpkms
16+
main: ./cmd/git-credential-github-app-gcpkms
17+
goos:
18+
- linux
19+
- darwin
20+
goarch:
21+
- amd64
22+
- arm64
23+
24+
archives:
25+
- formats:
26+
- binary

0 commit comments

Comments
 (0)