Skip to content

Commit

Permalink
fix wf for runtime (#4)
Browse files Browse the repository at this point in the history
* update workflow
  • Loading branch information
davidelettieri authored Oct 11, 2024
1 parent 346495b commit fe7b7c3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/publish-treesitter-nuget.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,25 @@ on:
- '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: Pack libtreesitter
run: nuget pack packages-definitions/libtreesitter/libtreesitter.nuspec
- name: Pack libtreesitter.runtime.linux-x64
run: nuget pack packages-definitions/libtreesitter.runtime.linux-x64/libtreesitter.runtime.linux-x64.nuspec
- 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
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata minClientVersion="2.12">
<id>libtreesitter.runtime.linux-x64</id>
<version>0.20.8-extra.4</version>
<version>$version$</version>
<authors>Davide Lettieri</authors>
<owners>Davide Lettieri</owners>
<projectUrl>https://github.com/davidelettieri/treesitter-bindings</projectUrl>
Expand Down
2 changes: 1 addition & 1 deletion packages-definitions/libtreesitter/libtreesitter.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata minClientVersion="2.12">
<id>libtreesitter</id>
<version>0.20.8-extra.4</version>
<version>$version$</version>
<authors>Davide Lettieri</authors>
<owners>Davide Lettieri</owners>
<projectUrl>https://github.com/davidelettieri/treesitter-bindings</projectUrl>
Expand Down

0 comments on commit fe7b7c3

Please sign in to comment.