Skip to content

Merge pull request #2 from Kiber2009/feature_multi_LiteralNode_values #27

Merge pull request #2 from Kiber2009/feature_multi_LiteralNode_values

Merge pull request #2 from Kiber2009/feature_multi_LiteralNode_values #27

Workflow file for this run

on: push
jobs:
find-projects:
runs-on: ubuntu-latest
permissions:
contents: read
outputs:
projects: ${{ steps.find.outputs.projects }}
steps:
- uses: actions/checkout@v6
- id: find
run: |
projects=$(find . -name "*.csproj" -print0 | while IFS= read -r -d '' proj; do
name=$(basename "$proj" .csproj)
dir=$(dirname "$proj")
jq -n --arg path "$proj" --arg name "$name" --arg dir "$dir" \
'{path: $path, name: $name, dir: $dir}'
done | jq -s -c '.')
echo "projects=$projects" >> $GITHUB_OUTPUT
build:
needs: find-projects
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
fail-fast: false
matrix:
project: ${{ fromJson(needs.find-projects.outputs.projects) }}
steps:
- uses: actions/checkout@v6
- uses: actions/setup-dotnet@v5
- run: dotnet build "${{ matrix.project.path }}" -c Release
- uses: actions/upload-artifact@v7
name: Upload nupkg
with:
path: ${{ matrix.project.dir }}/bin/Release/*.nupkg
archive: false
- uses: actions/upload-artifact@v7
name: Upload build
with:
path: ${{ matrix.project.dir }}/bin/Release/**/
name: ${{ matrix.project.name }}