This repository has been archived by the owner on May 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
split pack template into feature and main workflows
- Loading branch information
Showing
3 changed files
with
57 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Pack Feature .NET Template | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["Set Version"] | ||
branches-ignore: | ||
- main | ||
types: | ||
- completed | ||
|
||
jobs: | ||
pack-feature: | ||
runs-on: ubuntu-latest | ||
env: | ||
PROJECT_FILE: Templates.csproj | ||
BASE_VERSION: '1.0.0' # Wird dynamisch überschrieben | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: '8.0.x' | ||
- name: Restore NuGet packages | ||
run: dotnet restore ${{ env.PROJECT_FILE }} | ||
- name: Pack .NET Template Project for Feature Branches | ||
run: | | ||
datetimeSuffix=$(date +"%Y%m%d%H%M") | ||
version="${{ env.BASE_VERSION }}-preview.$datetimeSuffix" | ||
dotnet pack ${{ env.PROJECT_FILE }} /p:PackageVersion=$version --configuration Release --output nupkg | ||
echo "Feature branch version is $version" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Pack Main .NET Template | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["Set Version"] | ||
branches: | ||
- main | ||
types: | ||
- completed | ||
|
||
jobs: | ||
pack-main: | ||
runs-on: ubuntu-latest | ||
env: | ||
PROJECT_FILE: Templates.csproj | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: '8.0.x' | ||
- name: Restore NuGet packages | ||
run: dotnet restore ${{ env.PROJECT_FILE }} | ||
- name: Pack .NET Template Project for Main | ||
run: dotnet pack ${{ env.PROJECT_FILE }} --configuration Release --output nupkg |
This file was deleted.
Oops, something went wrong.