Skip to content

Commit f2f364c

Browse files
committed
Add release workflow (#9)
1 parent be3967c commit f2f364c

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

.github/workflows/release.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: github/release
2+
run-name: "[${{ github.ref_name }}] github/release"
3+
4+
5+
on:
6+
push:
7+
tags:
8+
- '*'
9+
10+
11+
permissions:
12+
contents: write
13+
14+
15+
jobs:
16+
release:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- id: show_debug_info
20+
name: Show Debug Info
21+
shell: bash
22+
env:
23+
GITHUB_CONTEXT: ${{ toJson(github) }}
24+
run: |
25+
# Show Debug Info
26+
echo "::group::User Info"
27+
id
28+
echo "::endgroup::"
29+
echo "::group::GitHub Context"
30+
echo "${GITHUB_CONTEXT}"
31+
echo "::endgroup::"
32+
echo "::group::Environment Variables"
33+
unset GITHUB_CONTEXT
34+
env | sort
35+
echo "::endgroup::"
36+
echo "::group::Git Info"
37+
which git
38+
git --version
39+
echo "::endgroup::"
40+
41+
- id: checkout_source
42+
name: Checkout Source
43+
# https://github.com/actions/checkout
44+
uses: actions/checkout@v3
45+
46+
- id: create_release
47+
name: Create Release
48+
# https://github.com/softprops/action-gh-release
49+
uses: softprops/action-gh-release@v1
50+
with:
51+
name: "Release ${{ github.ref_name }}"
52+
draft: true
53+
generate_release_notes: true

0 commit comments

Comments
 (0)