✨ Create Release via GH Action v1 (#7)
This commit is contained in:
12
.github/workflows/create-release.yml
vendored
12
.github/workflows/create-release.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user