mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-27 00:30:04 +00:00
44 lines
953 B
YAML
44 lines
953 B
YAML
name: Nuget Pack
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Setup .NET
|
|
uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: 8.0.x
|
|
|
|
- name: Restore dependencies
|
|
run: dotnet restore
|
|
|
|
- name: Pack
|
|
run: dotnet pack
|
|
|
|
- name: Upload build
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: 'Nuget Package'
|
|
path: 'SabreTools.Serialization/bin/Release/*.nupkg'
|
|
|
|
- name: Upload to rolling
|
|
uses: ncipollo/release-action@v1.14.0
|
|
with:
|
|
allowUpdates: True
|
|
artifacts: 'SabreTools.Serialization/bin/Release/*.nupkg'
|
|
body: 'Last built commit: ${{ github.sha }}'
|
|
name: 'Rolling Release'
|
|
prerelease: True
|
|
replacesArtifacts: True
|
|
tag: "rolling"
|
|
updateOnlyUnreleased: True
|