Skip to content

Commit c65e45e

Browse files
committed
add manual workflow
1 parent b53c5c2 commit c65e45e

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.github/workflows/manual.yaml

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

.github/workflows/release.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
permissions:
99
contents: write
1010
pull-requests: write
11+
id-token: write
1112

1213
jobs:
1314
create-release:

0 commit comments

Comments
 (0)