Skip to content

Commit 88e4b33

Browse files
authored
Create release.yml
1 parent 004a7b6 commit 88e4b33

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/release.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: GitHub Release
2+
3+
on:
4+
push:
5+
# Trigger only on tags like v1.0.0, v2.1.5, etc.
6+
tags:
7+
- 'v*'
8+
9+
jobs:
10+
release:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Set up .NET (for publishing artifacts if needed)
18+
uses: actions/setup-dotnet@v3
19+
with:
20+
dotnet-version: '6.0.x' # or other appropriate version
21+
22+
- name: Build solution
23+
run: dotnet build SharpExt4.sln --configuration Release
24+
25+
# Optional: Pack or publish NuGet or binaries
26+
# - name: Pack library
27+
# run: dotnet pack path/to/Project.csproj --configuration Release --output ./artifacts
28+
29+
- name: Create GitHub Release
30+
uses: softprops/action-gh-release@v1
31+
with:
32+
tag_name: ${{ github.ref_name }}
33+
name: ${{ github.ref_name }}
34+
body: |
35+
Release for version ${{ github.ref_name }}
36+
## Changes
37+
- Add changelog or highlights here.
38+
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)