Use LiveRenderer for sequential mode #1
Workflow file for this run
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
| name: Release | |
| on: | |
| push: | |
| tags: ['v*'] | |
| jobs: | |
| build-native: | |
| strategy: | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| rid: linux-x64 | |
| - os: macos-latest | |
| rid: osx-arm64 | |
| - os: windows-latest | |
| rid: win-x64 | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '10.0.x' | |
| - name: Set version from tag | |
| shell: bash | |
| run: echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV | |
| - name: Publish git-pull-all | |
| run: > | |
| dotnet publish src/git-pull-all/git-pull-all.csproj | |
| -c Release | |
| -r ${{ matrix.rid }} | |
| -p:Version=${{ env.VERSION }} | |
| -p:PublishAot=true | |
| -o ./publish/git-pull-all | |
| - name: Publish git-fetch-all | |
| run: > | |
| dotnet publish src/git-fetch-all/git-fetch-all.csproj | |
| -c Release | |
| -r ${{ matrix.rid }} | |
| -p:Version=${{ env.VERSION }} | |
| -p:PublishAot=true | |
| -o ./publish/git-fetch-all | |
| - name: Upload git-pull-all | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: git-pull-all-${{ matrix.rid }} | |
| path: ./publish/git-pull-all/git-pull-all* | |
| - name: Upload git-fetch-all | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: git-fetch-all-${{ matrix.rid }} | |
| path: ./publish/git-fetch-all/git-fetch-all* | |
| release: | |
| needs: build-native | |
| runs-on: ubuntu-latest | |
| environment: nuget | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '10.0.x' | |
| - name: Set version from tag | |
| run: echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV | |
| - run: dotnet restore | |
| - run: dotnet build --no-restore -c Release -p:Version=${{ env.VERSION }} | |
| - run: dotnet test --no-build -c Release | |
| - run: dotnet pack --no-build -c Release -p:Version=${{ env.VERSION }} -o ./artifacts | |
| - name: Push to NuGet | |
| run: dotnet nuget push ./artifacts/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json | |
| - name: Download native binaries | |
| uses: actions/download-artifact@v4 | |
| with: | |
| path: ./native | |
| - name: Package native binaries | |
| run: | | |
| cd native | |
| for dir in */; do | |
| name="${dir%/}" | |
| tar -czf "../artifacts/${name}.tar.gz" -C "$dir" . | |
| done | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: artifacts/* | |
| generate_release_notes: true |