Create Release via GH Action v1 (#7)

This commit is contained in:
Matt Parker
2025-11-15 15:07:24 +10:00
committed by GitHub
parent 89e04ed084
commit c2928fbd2d
7 changed files with 74 additions and 2 deletions

View File

@@ -5,6 +5,9 @@ on:
- main
workflow_dispatch:
permissions:
contents: write # Required to create releases
jobs:
execute-parallel-pipeline:
runs-on: ubuntu-latest
@@ -16,5 +19,14 @@ jobs:
version: 4.5.1
use-dotnet: true
include-templates: true
- name: Determine If Release Necessary
id: determine-if-release-necessary
run: |
SHOULD_RELEASE=$(dotnet ./iac/should-release.cs)
echo "Command output: $SHOULD_RELEASE"
echo "should_release=$SHOULD_RELEASE" >> $GITHUB_OUTPUT
- name: Dotnet Run Pipeline
if: steps.determine-if-release-necessary.outputs.should_release == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: dotnet run -c Release --project ./iac/Deploy/Deploy.csproj