Skip to content

Commit b1650e5

Browse files
committed
add workflow to deploy extension for gh cli
1 parent b432db6 commit b1650e5

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/deploy.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
on:
2+
release:
3+
type: published
4+
5+
jobs:
6+
deploy_gh_extension:
7+
- name: Checkout code
8+
uses: actions/checkout@v4
9+
with:
10+
fetch-depth: 0
11+
12+
- name: Setup Go
13+
uses: actions/setup-go@v5
14+
with:
15+
go-version: stable
16+
17+
- name: Precompile GH Extension
18+
uses: cli/gh-extension-precompile@v2
19+
with:
20+
go_version_file: go.mod
21+
22+
- name: Upload binaries to GitHub Release
23+
uses: softprops/action-gh-release@v2
24+
with:
25+
tag_name: ${{ needs.create-release.outputs.tag_name }}
26+
files: dist/*

0 commit comments

Comments
 (0)