Skip to content

Build packages and store artifacts #24

Build packages and store artifacts

Build packages and store artifacts #24

Workflow file for this run

name: Build packages and store artifacts
on:
workflow_dispatch:
inputs:
nuget-semver:
type: string
description: 'package version'
required: false
default: '1.0.0-Test-DATE-TIME'
workflow_call:
inputs:
nuget-semver:
type: string
description: 'package version'
required: true
default: '1.0.0-Test-DATE-TIME'
jobs:
build_job:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
# --------------------------------------------- DotNet SDK
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
# --------------------------------------------- checkout repo
- name: Checkout
uses: actions/checkout@v4
# --------------------------------------------- build
- name: Build
run: |

Check failure on line 42 in .github/workflows/BuildPackages.yml

View workflow run for this annotation

GitHub Actions / Build packages and store artifacts

Invalid workflow file

The workflow is not valid. .github/workflows/BuildPackages.yml (Line: 42, Col: 12): Unrecognized named-value: 'nuget-semver'. Located at position 1 within expression: nuget-semver
chmod +x ./build.sh
./build.sh ${{nuget-semver}}
# --------------------------------------------- publish
- name: Archive
uses: actions/upload-artifact@v4
with:
name: nuget-packages
retention-days: 1
path: |
*.nupkg
*.snupkg