|
@@ -3,9 +3,11 @@ name: Build packages and store artifacts
|
|
|
on: [workflow_dispatch, workflow_call]
|
|
on: [workflow_dispatch, workflow_call]
|
|
|
|
|
|
|
|
jobs:
|
|
jobs:
|
|
|
- build:
|
|
|
|
|
|
|
+ build_job:
|
|
|
|
|
+
|
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
|
timeout-minutes: 5
|
|
timeout-minutes: 5
|
|
|
|
|
+
|
|
|
steps:
|
|
steps:
|
|
|
|
|
|
|
|
# --------------------------------------------- DotNet SDK
|
|
# --------------------------------------------- DotNet SDK
|
|
@@ -17,14 +19,8 @@ jobs:
|
|
|
|
|
|
|
|
- name: Checkout
|
|
- name: Checkout
|
|
|
uses: actions/checkout@v4
|
|
uses: actions/checkout@v4
|
|
|
-
|
|
|
|
|
- # --------------------------------------------- install dependencies
|
|
|
|
|
-
|
|
|
|
|
- - name: Install dependencies
|
|
|
|
|
- run: dotnet tool restore
|
|
|
|
|
-
|
|
|
|
|
- - name: Install dependencies
|
|
|
|
|
- run: dotnet restore
|
|
|
|
|
|
|
+
|
|
|
|
|
+ # --------------------------------------------- variables
|
|
|
|
|
|
|
|
- name: define version suffix
|
|
- name: define version suffix
|
|
|
run: |
|
|
run: |
|
|
@@ -34,16 +30,23 @@ jobs:
|
|
|
if [ -z "${{ env.VERSIONSUFFIX }}" ]; then
|
|
if [ -z "${{ env.VERSIONSUFFIX }}" ]; then
|
|
|
echo "VERSIONSUFFIX=Test-$(date +'%Y%m%d-%H%M%S')" >> $GITHUB_ENV
|
|
echo "VERSIONSUFFIX=Test-$(date +'%Y%m%d-%H%M%S')" >> $GITHUB_ENV
|
|
|
fi
|
|
fi
|
|
|
- echo "VERSIONSUFFIX is set to ${{ env.VERSIONSUFFIX }}"
|
|
|
|
|
|
|
|
|
|
# --------------------------------------------- build
|
|
# --------------------------------------------- build
|
|
|
|
|
|
|
|
|
|
+ - name: Install tools
|
|
|
|
|
+ run: dotnet tool restore
|
|
|
|
|
+
|
|
|
|
|
+ - name: Install dependencies
|
|
|
|
|
+ run: dotnet restore
|
|
|
|
|
+
|
|
|
- name: Build
|
|
- name: Build
|
|
|
run: dotnet build -c Release --version-suffix ${{ env.VERSIONSUFFIX }}
|
|
run: dotnet build -c Release --version-suffix ${{ env.VERSIONSUFFIX }}
|
|
|
|
|
|
|
|
- name: Pack
|
|
- name: Pack
|
|
|
run: dotnet pack -c Release --no-build --output "."
|
|
run: dotnet pack -c Release --no-build --output "."
|
|
|
|
|
|
|
|
|
|
+ # --------------------------------------------- publish
|
|
|
|
|
+
|
|
|
- name: Archive
|
|
- name: Archive
|
|
|
uses: actions/upload-artifact@v4
|
|
uses: actions/upload-artifact@v4
|
|
|
with:
|
|
with:
|