mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-02 18:39:05 +01:00
Add steps to publish to Snapcraft (#1102)
Draft until our Snap package is approved for classic confinement: https://forum.snapcraft.io/t/classic-confinement-request-for-waveterm/43562
This commit is contained in:
parent
fe7d849bfe
commit
3bd9249e81
13
.github/workflows/publish-release.yml
vendored
13
.github/workflows/publish-release.yml
vendored
@ -16,6 +16,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
version: 3.x
|
version: 3.x
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Install Snapcraft
|
||||||
|
uses: samuelmeuli/action-snapcraft@v2
|
||||||
- name: Publish from staging
|
- name: Publish from staging
|
||||||
run: "task artifacts:publish:${{ github.ref_name }}"
|
run: "task artifacts:publish:${{ github.ref_name }}"
|
||||||
env:
|
env:
|
||||||
@ -23,6 +25,17 @@ jobs:
|
|||||||
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
|
||||||
|
- name: Download Snap from Release
|
||||||
|
uses: i3h/download-release-asset@v1
|
||||||
|
with:
|
||||||
|
owner: wavetermdev
|
||||||
|
repo: waveterm
|
||||||
|
tag: ${{github.ref_name}}
|
||||||
|
file: /*.snap/
|
||||||
|
- name: Publish to Snapcraft
|
||||||
|
run: "task artifacts:publish:snap:${{ github.ref_name }}"
|
||||||
|
env:
|
||||||
|
SNAPCRAFT_STORE_CREDENTIALS: "${{secrets.SNAPCRAFT_LOGIN_CREDS}}"
|
||||||
bump-winget:
|
bump-winget:
|
||||||
if: ${{ startsWith(github.ref, 'refs/tags/') && !contains(github.ref_name, 'beta') }}
|
if: ${{ startsWith(github.ref, 'refs/tags/') && !contains(github.ref_name, 'beta') }}
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
@ -230,6 +230,14 @@ tasks:
|
|||||||
echo "https://$SUFFIX"
|
echo "https://$SUFFIX"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
artifacts:publish:snap:*:
|
||||||
|
desc: Publishes the specified artifacts version to Snapcraft.
|
||||||
|
vars:
|
||||||
|
UP_VERSION: '{{ replace "v" "" (index .MATCH 0)}}'
|
||||||
|
CHANNEL: '{{if contains .UP_VERSION "beta"}}beta{{else}}beta,stable{{end}}'
|
||||||
|
cmd: |
|
||||||
|
snapcraft upload --release={{.CHANNEL}} waveterm_{{.UP_VERSION}}_arm64.snap
|
||||||
|
snapcraft upload --release={{.CHANNEL}} waveterm_{{.UP_VERSION}}_amd64.snap
|
||||||
|
|
||||||
artifacts:publish:winget:*:
|
artifacts:publish:winget:*:
|
||||||
desc: Submits a version bump request to WinGet for the latest release.
|
desc: Submits a version bump request to WinGet for the latest release.
|
||||||
|
@ -88,6 +88,7 @@ const config = {
|
|||||||
base: "core22",
|
base: "core22",
|
||||||
confinement: "classic",
|
confinement: "classic",
|
||||||
allowNativeWayland: true,
|
allowNativeWayland: true,
|
||||||
|
artifactName: `${productName}_${version}_${arch}.${ext}`,
|
||||||
},
|
},
|
||||||
publish: {
|
publish: {
|
||||||
provider: "generic",
|
provider: "generic",
|
||||||
|
Loading…
Reference in New Issue
Block a user