mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-02 18:39:05 +01:00
Merge branch 'main' into dev-v0.9
This commit is contained in:
commit
4e86b67936
17
.github/workflows/publish-release.yml
vendored
17
.github/workflows/publish-release.yml
vendored
@ -7,6 +7,7 @@ on:
|
|||||||
types: [published]
|
types: [published]
|
||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
|
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@ -16,10 +17,24 @@ jobs:
|
|||||||
version: 3.x
|
version: 3.x
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Publish from staging
|
- name: Publish from staging
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
|
||||||
run: "task artifacts:publish:${{ github.ref_name }}"
|
run: "task artifacts:publish:${{ github.ref_name }}"
|
||||||
env:
|
env:
|
||||||
AWS_ACCESS_KEY_ID: "${{ secrets.PUBLISHER_KEY_ID }}"
|
AWS_ACCESS_KEY_ID: "${{ secrets.PUBLISHER_KEY_ID }}"
|
||||||
AWS_SECRET_ACCESS_KEY: "${{ secrets.PUBLISHER_KEY_SECRET }}"
|
AWS_SECRET_ACCESS_KEY: "${{ secrets.PUBLISHER_KEY_SECRET }}"
|
||||||
AWS_DEFAULT_REGION: us-west-2
|
AWS_DEFAULT_REGION: us-west-2
|
||||||
shell: bash
|
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
|
||||||
|
@ -29,6 +29,12 @@ Also available as a Homebrew Cask for macOS:
|
|||||||
brew install --cask wave
|
brew install --cask wave
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Also available via the Windows Package Manager:
|
||||||
|
|
||||||
|
```Powershell
|
||||||
|
winget install CommandLine.Wave
|
||||||
|
```
|
||||||
|
|
||||||
### Minimum requirements
|
### Minimum requirements
|
||||||
|
|
||||||
Wave Terminal and WSH run on the following platforms:
|
Wave Terminal and WSH run on the following platforms:
|
||||||
|
11
Taskfile.yml
11
Taskfile.yml
@ -13,6 +13,7 @@ vars:
|
|||||||
DATE: '{{if eq OS "windows"}}powershell Get-Date -UFormat{{else}}date{{end}}'
|
DATE: '{{if eq OS "windows"}}powershell Get-Date -UFormat{{else}}date{{end}}'
|
||||||
ARTIFACTS_BUCKET: waveterm-github-artifacts/staging-w2
|
ARTIFACTS_BUCKET: waveterm-github-artifacts/staging-w2
|
||||||
RELEASES_BUCKET: dl.waveterm.dev/releases-w2
|
RELEASES_BUCKET: dl.waveterm.dev/releases-w2
|
||||||
|
WINGET_PACKAGE: CommandLine.Wave
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
electron:dev:
|
electron:dev:
|
||||||
@ -230,6 +231,16 @@ tasks:
|
|||||||
fi
|
fi
|
||||||
done
|
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:
|
yarn:
|
||||||
desc: Runs `yarn`
|
desc: Runs `yarn`
|
||||||
internal: true
|
internal: true
|
||||||
|
Loading…
Reference in New Issue
Block a user