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.
123456789101112131415161718192021222324252627282930313233343536373839name: .NET Release Buildson: release: types: [published]
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: Get the release tag id: get_release_tag run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT - name: Upload artifact to the release env: GH_TOKEN: ${{ github.token }} run: gh release upload ${{ steps.get_release_tag.outputs.tag }} ${{ matrix.platform }}-${{ matrix.arch }}-${{ matrix.self-contained == 'true' && 'self-contained' || 'runtime' }}.tar.gz --clobber