Skip to content

Bump YamlDotNet from 15.3.0 to 16.0.0 (#16) #4

Bump YamlDotNet from 15.3.0 to 16.0.0 (#16)

Bump YamlDotNet from 15.3.0 to 16.0.0 (#16) #4

Workflow file for this run

name: .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@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.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@v4
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@v4
- name: Edit CI release
env:
GH_TOKEN: ${{ github.token }}
run: gh release edit ci -n "CI build for commit $GITHUB_SHA"