From 5a764aaaad7908d54fdf34360f899a2ed746816f Mon Sep 17 00:00:00 2001 From: Mehdi Hadeli Date: Thu, 28 Nov 2024 00:18:29 +0330 Subject: [PATCH] ci: github action update --- .github/workflows/publish.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7ae92d1..fb53ce3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -17,6 +17,7 @@ env: GHC_API_KEY: ${{ secrets.GHC_TOKEN }} NuGetDirectory: nuget AIAssistBuildOutput: src/AIAssist/bin/Release/net8.0/ + DownloadOutput: download jobs: @@ -52,14 +53,24 @@ jobs: ./scripts/ci_install_tree_sitter.sh shell: bash - - name: Upload compiled binaries + - name: Upload all Linux binaries + if: matrix.os == 'ubuntu-latest' uses: actions/upload-artifact@v4 with: - name: tree-sitter-binaries-${{ matrix.os }} + retention-days: 7 + name: tree-sitter-ubuntu-binaries path: | tree-sitter/bins/*.so - tree-sitter/bins/*.dll tree-sitter/grammars/bins/*.so + + - name: Upload all Windows binaries + if: matrix.os == 'windows-latest' + uses: actions/upload-artifact@v4 + with: + name: tree-sitter-windows-binaries + retention-days: 7 + path: | + tree-sitter/bins/*.dll tree-sitter/grammars/bins/*.dll create-nuget: @@ -86,13 +97,13 @@ jobs: - name: Download Linux binaries uses: actions/download-artifact@v4 with: - name: tree-sitter-binaries-ubuntu-latest + name: tree-sitter-ubuntu-binaries path: ${{ env.AIAssistBuildOutput }} - name: Download Windows binaries uses: actions/download-artifact@v4 with: - name: tree-sitter-binaries-windows-latest + name: tree-sitter-windows-binaries path: ${{ env.AIAssistBuildOutput }} - name: List files