Skip to content

Release v3

Release v3 #1

Workflow file for this run

name: Release v3
on:
push:
branches:
- netfx
paths:
- 'YAF.SampleWebApplication/package.json'
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v6
- name: Extract version from package.json
id: version
run: |
VERSION=$(jq -r .version YAF.SampleWebApplication/package.json)
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
- name: Check if release tag already exists
id: check_tag
run: |
if git ls-remote --tags origin "refs/tags/v${{ steps.version.outputs.version }}" | grep -q .; then
echo "exists=true" >> "$GITHUB_OUTPUT"
else
echo "exists=false" >> "$GITHUB_OUTPUT"
fi
- name: Create GitHub Release
if: steps.check_tag.outputs.exists == 'false'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create "v${{ steps.version.outputs.version }}" \
--target netfx \
--title "YAF.NET v${{ steps.version.outputs.version }} Sample Web Application" \
--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."