Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/Fleny113/Hexus. A modern, cross-platform process manager
dotnet dotnet-core dotnetcore process-manager
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455name: .NET CI builds
on: push: branches: ["main"]
jobs: publish: name: Publish for ${{ matrix.platform }} ${{ matrix.arch }} (${{ matrix.self-contained == 'true' && 'self-contained' || 'runtime' }}) runs-on: ubuntu-latest permissions: contents: write strategy: matrix: # The runtime id will be composed based on parts of the .NET Known RIDs (https://learn.microsoft.com/en-us/dotnet/core/rid-catalog#known-rids) arch: ["x64", "arm64"] platform: ["win", "linux"] self-contained: ["true", "false"] steps: - uses: actions/checkout@v7 - name: Setup .NET uses: actions/setup-dotnet@v6 with: dotnet-version: 10.0.x - name: Restore dependencies run: dotnet restore --runtime ${{ matrix.platform }}-${{ matrix.arch }} - name: Publish run: dotnet publish Hexus --no-restore --runtime ${{ matrix.platform }}-${{ matrix.arch }} --self-contained ${{ matrix.self-contained }} - name: Prepare artifact for CI release run: | cd artifacts/publish/Hexus/release_${{ matrix.platform }}-${{ matrix.arch }} tar -czf ../../../../${{ matrix.platform }}-${{ matrix.arch }}-${{ matrix.self-contained == 'true' && 'self-contained' || 'runtime' }}.tar.gz * - name: Upload artifact uses: actions/upload-artifact@v7 with: path: ./${{ matrix.platform }}-${{ matrix.arch }}-${{ matrix.self-contained == 'true' && 'self-contained' || 'runtime' }}.tar.gz name: ${{ matrix.platform }}-${{ matrix.arch }}-${{ matrix.self-contained == 'true' && 'self-contained' || 'runtime' }}.tar.gz if-no-files-found: error - name: Upload artifact to CI release env: GH_TOKEN: ${{ github.token }} run: gh release upload ci ${{ matrix.platform }}-${{ matrix.arch }}-${{ matrix.self-contained == 'true' && 'self-contained' || 'runtime' }}.tar.gz --clobber edit-ci-release: name: Edit CI release runs-on: ubuntu-latest needs: publish permissions: contents: write steps: - uses: actions/checkout@v7 - name: Edit CI release env: GH_TOKEN: ${{ github.token }} run: gh release edit ci -n "CI build for commit $GITHUB_SHA"