Skip to content

fix wf for runtime (#4) #11

fix wf for runtime (#4)

fix wf for runtime (#4) #11

name: Publish Runtime
on:
push:
branches:
- main
tags:
- 'runtime-*.*.*'
paths-ignore:
- 'src/**'
- 'tests/**'
- 'samples/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
filter: tree:0
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Install minver
run: dotnet tool install --global minver-cli --version 6.0.0
- name: Compute version and pack
run: |
version=$(minver -v e)
nuget pack packages-definitions/libtreesitter/libtreesitter.nuspec -Properties version=$version
nuget pack packages-definitions/libtreesitter.runtime.linux-x64/libtreesitter.runtime.linux-x64.nuspec -Properties version=$version
- name: Publish libtreesitter package to Nuget
run: dotnet nuget push *.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json