From 45a4f59f81071a4a99d127b5577fd1b99a23281a Mon Sep 17 00:00:00 2001 From: Curtis Gray Date: Tue, 2 Apr 2024 16:23:01 -0400 Subject: [PATCH] Kill file for immediate exit Enable prerelease builds --- .../wingman-update-prerelease-notes.yaml | 52 +++++++++++++++++++ .github/workflows/wingman.backend.yaml | 2 +- services/wingman.cpp | 2 +- ux/package.json | 2 +- 4 files changed, 55 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/wingman-update-prerelease-notes.yaml diff --git a/.github/workflows/wingman-update-prerelease-notes.yaml b/.github/workflows/wingman-update-prerelease-notes.yaml new file mode 100644 index 0000000..0289058 --- /dev/null +++ b/.github/workflows/wingman-update-prerelease-notes.yaml @@ -0,0 +1,52 @@ +name: Update Wingman Prerelease Notes + +on: + workflow_run: + workflows: ['Wingman App Build for Testing'] + types: + - completed + +jobs: + update-release-notes: + permissions: write-all + if: ${{ github.event.workflow_run.conclusion == 'success' }} + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Download Artifact with Tag Name + uses: actions/download-artifact@v4 + id: tag-artifact + with: + name: tag-name + run-id: ${{ github.event.workflow_run.id }} + github-token: ${{ secrets.GITHUB_TOKEN }} + + - name: Read Tag Name + id: tag + run: | + tag=$(cat ${{ steps.tag-artifact.outputs.download-path }}/tag.txt) + echo "The tag is $tag" + # set an environment variable to pass to the next step + echo "TAG=$tag" >> $GITHUB_ENV + + - name: Update Prerelease Notes with Download Table + shell: pwsh + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + # $tag = git describe --tags $(git rev-list --tags --max-count=1) + # $tag=${{ env.TAG }} + $tag = $env:TAG + Write-Output "Updating release notes for tag $tag" + + gh release edit "$tag" --prerelease=true --draft=false + $markdownTable = ./make-download-table.ps1 -tag "$tag" + if (-not $markdownTable) { + Write-Error "Failed to generate markdown table." + exit 1 + } + gh release edit "$tag" --title "Wingman $tag" --notes "$markdownTable" --draft=false --prerelease=true --latest=false diff --git a/.github/workflows/wingman.backend.yaml b/.github/workflows/wingman.backend.yaml index 234f4a2..c7c304a 100644 --- a/.github/workflows/wingman.backend.yaml +++ b/.github/workflows/wingman.backend.yaml @@ -1,4 +1,4 @@ -name: Wingman App Build and Release +name: Wingman App Build for Testing defaults: run: diff --git a/services/wingman.cpp b/services/wingman.cpp index 716f3e4..34f8838 160000 --- a/services/wingman.cpp +++ b/services/wingman.cpp @@ -1 +1 @@ -Subproject commit 716f3e4c250a9db08ed414825a1cc01e46711cbf +Subproject commit 34f88384f961ec2de690297d075aaabe201b799a diff --git a/ux/package.json b/ux/package.json index 3b12ac3..7978e34 100644 --- a/ux/package.json +++ b/ux/package.json @@ -1,7 +1,7 @@ { "name": "wingman", "description": "Wingman is the best way to run Llama AI locally.", - "version": "0.10.29", + "version": "0.10.30", "author": { "name": "Electric Curtis", "url": "https://x.com/electric_curtis"