Skip to content

Commit a96492d

Browse files
committed
added releases
1 parent 6e91a5b commit a96492d

2 files changed

Lines changed: 43 additions & 0 deletions

File tree

‎.github/workflows/releaseV3.yml‎

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Release v3
2+
3+
on:
4+
push:
5+
branches:
6+
- netfx
7+
paths:
8+
- 'YAF.SampleWebApplication/package.json'
9+
workflow_dispatch:
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
16+
17+
steps:
18+
- uses: actions/checkout@v6
19+
20+
- name: Extract version from package.json
21+
id: version
22+
run: |
23+
VERSION=$(jq -r .version YAF.SampleWebApplication/package.json)
24+
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
25+
26+
- name: Check if release tag already exists
27+
id: check_tag
28+
run: |
29+
if git ls-remote --tags origin "refs/tags/v${{ steps.version.outputs.version }}" | grep -q .; then
30+
echo "exists=true" >> "$GITHUB_OUTPUT"
31+
else
32+
echo "exists=false" >> "$GITHUB_OUTPUT"
33+
fi
34+
35+
- name: Create GitHub Release
36+
if: steps.check_tag.outputs.exists == 'false'
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
run: |
40+
gh release create "v${{ steps.version.outputs.version }}" \
41+
--target netfx \
42+
--title "YAF.NET v${{ steps.version.outputs.version }} Sample Web Application" \
43+
--notes "This Application is a Standard Visual Studio Sample ASP.NET Application (.NET Framework 4.8.1), including YAF.NET v${{ steps.version.outputs.version }} integrated as Control on a Page."

0 commit comments

Comments
 (0)