Change release name #25
This file contains hidden or 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
| 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 }} |