mirror of
https://github.com/katanemo/plano.git
synced 2026-04-25 08:46:24 +02:00
add workflow_dispatch trigger for testing binary publishing
This commit is contained in:
parent
38cb81ba7a
commit
9d223d54f9
1 changed files with 9 additions and 4 deletions
13
.github/workflows/publish-binaries.yml
vendored
13
.github/workflows/publish-binaries.yml
vendored
|
|
@ -3,6 +3,11 @@ name: Publish pre-compiled binaries (release)
|
|||
on:
|
||||
release:
|
||||
types: [published]
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
tag:
|
||||
description: "Release tag to upload binaries to (e.g. 0.4.9)"
|
||||
required: true
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
|
@ -27,7 +32,7 @@ jobs:
|
|||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
gh release upload "${{ github.event.release.tag_name }}" \
|
||||
gh release upload "${{ github.event.release.tag_name || inputs.tag }}" \
|
||||
crates/target/wasm32-wasip1/release/prompt_gateway.wasm \
|
||||
crates/target/wasm32-wasip1/release/llm_gateway.wasm \
|
||||
--clobber
|
||||
|
|
@ -50,7 +55,7 @@ jobs:
|
|||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
cp crates/target/release/brightstaff brightstaff-linux-amd64
|
||||
gh release upload "${{ github.event.release.tag_name }}" \
|
||||
gh release upload "${{ github.event.release.tag_name || inputs.tag }}" \
|
||||
brightstaff-linux-amd64 \
|
||||
--clobber
|
||||
|
||||
|
|
@ -72,7 +77,7 @@ jobs:
|
|||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
cp crates/target/release/brightstaff brightstaff-linux-arm64
|
||||
gh release upload "${{ github.event.release.tag_name }}" \
|
||||
gh release upload "${{ github.event.release.tag_name || inputs.tag }}" \
|
||||
brightstaff-linux-arm64 \
|
||||
--clobber
|
||||
|
||||
|
|
@ -94,6 +99,6 @@ jobs:
|
|||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
cp crates/target/release/brightstaff brightstaff-darwin-arm64
|
||||
gh release upload "${{ github.event.release.tag_name }}" \
|
||||
gh release upload "${{ github.event.release.tag_name || inputs.tag }}" \
|
||||
brightstaff-darwin-arm64 \
|
||||
--clobber
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue