Merge branch 'main' into dev-v0.9

This commit is contained in:
Evan Simkowitz 2024-10-23 14:46:43 -07:00
commit 4e86b67936
No known key found for this signature in database
3 changed files with 33 additions and 1 deletions

View File

@ -7,6 +7,7 @@ on:
types: [published]
jobs:
publish:
if: ${{ startsWith(github.ref, 'refs/tags/') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
@ -16,10 +17,24 @@ jobs:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Publish from staging
if: startsWith(github.ref, 'refs/tags/')
run: "task artifacts:publish:${{ github.ref_name }}"
env:
AWS_ACCESS_KEY_ID: "${{ secrets.PUBLISHER_KEY_ID }}"
AWS_SECRET_ACCESS_KEY: "${{ secrets.PUBLISHER_KEY_SECRET }}"
AWS_DEFAULT_REGION: us-west-2
shell: bash
bump-winget:
if: ${{ startsWith(github.ref, 'refs/tags/') && !contains(github.ref_name, 'beta') }}
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Install Task
uses: arduino/setup-task@v2
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Submit Winget version bump
run: "task artifacts:publish:winget:${{ github.ref_name }}"
env:
GITHUB_TOKEN: ${{ secrets.WINGET_BUMP_PAT }}
shell: pwsh

View File

@ -29,6 +29,12 @@ Also available as a Homebrew Cask for macOS:
brew install --cask wave
```
Also available via the Windows Package Manager:
```Powershell
winget install CommandLine.Wave
```
### Minimum requirements
Wave Terminal and WSH run on the following platforms:

View File

@ -13,6 +13,7 @@ vars:
DATE: '{{if eq OS "windows"}}powershell Get-Date -UFormat{{else}}date{{end}}'
ARTIFACTS_BUCKET: waveterm-github-artifacts/staging-w2
RELEASES_BUCKET: dl.waveterm.dev/releases-w2
WINGET_PACKAGE: CommandLine.Wave
tasks:
electron:dev:
@ -230,6 +231,16 @@ tasks:
fi
done
artifacts:publish:winget:*:
desc: Submits a version bump request to WinGet for the latest release.
status:
- exit {{if contains UP_VERSION "beta"}}0{{else}}1{{end}}
vars:
UP_VERSION: '{{ replace "v" "" (index .MATCH 0)}}'
cmd: |
iwr https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe
.\wingetcreate.exe update {{.WINGET_PACKAGE}} -s -v {{.UP_VERSION}} -u "https://{{.RELEASES_BUCKET}}/{{.APP_NAME}}-win32-x64-{{.UP_VERSION}}.exe" -t $env:GITHUB_TOKEN
yarn:
desc: Runs `yarn`
internal: true