1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-23 05:12:40 +03:00

ci: try uploading sha256 files alongside release assets

refs: #2114
This commit is contained in:
Wez Furlong 2022-07-25 08:39:24 -07:00
parent 23f36b2afb
commit 360b3f3479
41 changed files with 174 additions and 40 deletions

View File

@ -106,8 +106,11 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: "alpine3.12" name: "alpine3.12"
- name: "Checksum"
shell: bash
run: "for f in wezterm-*.apk ; do sha256sum $f > $f.sha256 ; done"
- name: "Upload to Nightly Release" - name: "Upload to Nightly Release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.apk" run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.apk *.sha256"

View File

@ -98,6 +98,9 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: "alpine3.12" name: "alpine3.12"
- name: "Checksum"
shell: bash
run: "for f in wezterm-*.apk *.pub ; do sha256sum $f > $f.sha256 ; done"
- name: "Create pre-release" - name: "Create pre-release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -107,4 +110,4 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash shell: bash
run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.apk *.pub" run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.apk *.pub *.sha256"

View File

@ -106,8 +106,11 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: "alpine3.13" name: "alpine3.13"
- name: "Checksum"
shell: bash
run: "for f in wezterm-*.apk ; do sha256sum $f > $f.sha256 ; done"
- name: "Upload to Nightly Release" - name: "Upload to Nightly Release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.apk" run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.apk *.sha256"

View File

@ -98,6 +98,9 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: "alpine3.13" name: "alpine3.13"
- name: "Checksum"
shell: bash
run: "for f in wezterm-*.apk *.pub ; do sha256sum $f > $f.sha256 ; done"
- name: "Create pre-release" - name: "Create pre-release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -107,4 +110,4 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash shell: bash
run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.apk *.pub" run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.apk *.pub *.sha256"

View File

@ -106,8 +106,11 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: "alpine3.14" name: "alpine3.14"
- name: "Checksum"
shell: bash
run: "for f in wezterm-*.apk ; do sha256sum $f > $f.sha256 ; done"
- name: "Upload to Nightly Release" - name: "Upload to Nightly Release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.apk" run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.apk *.sha256"

View File

@ -98,6 +98,9 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: "alpine3.14" name: "alpine3.14"
- name: "Checksum"
shell: bash
run: "for f in wezterm-*.apk *.pub ; do sha256sum $f > $f.sha256 ; done"
- name: "Create pre-release" - name: "Create pre-release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -107,4 +110,4 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash shell: bash
run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.apk *.pub" run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.apk *.pub *.sha256"

View File

@ -106,8 +106,11 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: "alpine3.15" name: "alpine3.15"
- name: "Checksum"
shell: bash
run: "for f in wezterm-*.apk ; do sha256sum $f > $f.sha256 ; done"
- name: "Upload to Nightly Release" - name: "Upload to Nightly Release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.apk" run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.apk *.sha256"

View File

@ -98,6 +98,9 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: "alpine3.15" name: "alpine3.15"
- name: "Checksum"
shell: bash
run: "for f in wezterm-*.apk *.pub ; do sha256sum $f > $f.sha256 ; done"
- name: "Create pre-release" - name: "Create pre-release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -107,4 +110,4 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash shell: bash
run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.apk *.pub" run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.apk *.pub *.sha256"

View File

@ -119,8 +119,11 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: "centos7" name: "centos7"
- name: "Checksum"
shell: bash
run: "for f in wezterm-*.rpm ; do sha256sum $f > $f.sha256 ; done"
- name: "Upload to Nightly Release" - name: "Upload to Nightly Release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.rpm" run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.rpm *.sha256"

View File

@ -102,6 +102,9 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: "centos7" name: "centos7"
- name: "Checksum"
shell: bash
run: "for f in wezterm-*.rpm ; do sha256sum $f > $f.sha256 ; done"
- name: "Create pre-release" - name: "Create pre-release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -111,4 +114,4 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash shell: bash
run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.rpm" run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.rpm *.sha256"

View File

@ -105,8 +105,11 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: "centos8" name: "centos8"
- name: "Checksum"
shell: bash
run: "for f in wezterm-*.rpm ; do sha256sum $f > $f.sha256 ; done"
- name: "Upload to Nightly Release" - name: "Upload to Nightly Release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.rpm" run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.rpm *.sha256"

View File

@ -88,6 +88,9 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: "centos8" name: "centos8"
- name: "Checksum"
shell: bash
run: "for f in wezterm-*.rpm ; do sha256sum $f > $f.sha256 ; done"
- name: "Create pre-release" - name: "Create pre-release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -97,4 +100,4 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash shell: bash
run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.rpm" run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.rpm *.sha256"

View File

@ -105,8 +105,11 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: "centos9" name: "centos9"
- name: "Checksum"
shell: bash
run: "for f in wezterm-*.rpm ; do sha256sum $f > $f.sha256 ; done"
- name: "Upload to Nightly Release" - name: "Upload to Nightly Release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.rpm" run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.rpm *.sha256"

View File

@ -88,6 +88,9 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: "centos9" name: "centos9"
- name: "Checksum"
shell: bash
run: "for f in wezterm-*.rpm ; do sha256sum $f > $f.sha256 ; done"
- name: "Create pre-release" - name: "Create pre-release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -97,4 +100,4 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash shell: bash
run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.rpm" run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.rpm *.sha256"

View File

@ -107,8 +107,11 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: "debian10.3" name: "debian10.3"
- name: "Checksum"
shell: bash
run: "for f in wezterm-*.deb wezterm-*.xz ; do sha256sum $f > $f.sha256 ; done"
- name: "Upload to Nightly Release" - name: "Upload to Nightly Release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.deb wezterm-*.xz" run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.deb wezterm-*.xz *.sha256"

View File

@ -90,6 +90,9 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: "debian10.3" name: "debian10.3"
- name: "Checksum"
shell: bash
run: "for f in wezterm-*.deb wezterm-*.xz ; do sha256sum $f > $f.sha256 ; done"
- name: "Create pre-release" - name: "Create pre-release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -99,4 +102,4 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash shell: bash
run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.deb wezterm-*.xz" run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.deb wezterm-*.xz *.sha256"

View File

@ -107,8 +107,11 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: "debian11" name: "debian11"
- name: "Checksum"
shell: bash
run: "for f in wezterm-*.deb wezterm-*.xz ; do sha256sum $f > $f.sha256 ; done"
- name: "Upload to Nightly Release" - name: "Upload to Nightly Release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.deb wezterm-*.xz" run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.deb wezterm-*.xz *.sha256"

View File

@ -90,6 +90,9 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: "debian11" name: "debian11"
- name: "Checksum"
shell: bash
run: "for f in wezterm-*.deb wezterm-*.xz ; do sha256sum $f > $f.sha256 ; done"
- name: "Create pre-release" - name: "Create pre-release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -99,4 +102,4 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash shell: bash
run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.deb wezterm-*.xz" run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.deb wezterm-*.xz *.sha256"

View File

@ -102,8 +102,11 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: "fedora33" name: "fedora33"
- name: "Checksum"
shell: bash
run: "for f in wezterm-*.rpm ; do sha256sum $f > $f.sha256 ; done"
- name: "Upload to Nightly Release" - name: "Upload to Nightly Release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.rpm" run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.rpm *.sha256"

View File

@ -85,6 +85,9 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: "fedora33" name: "fedora33"
- name: "Checksum"
shell: bash
run: "for f in wezterm-*.rpm ; do sha256sum $f > $f.sha256 ; done"
- name: "Create pre-release" - name: "Create pre-release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -94,4 +97,4 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash shell: bash
run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.rpm" run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.rpm *.sha256"

View File

@ -102,8 +102,11 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: "fedora34" name: "fedora34"
- name: "Checksum"
shell: bash
run: "for f in wezterm-*.rpm ; do sha256sum $f > $f.sha256 ; done"
- name: "Upload to Nightly Release" - name: "Upload to Nightly Release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.rpm" run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.rpm *.sha256"

View File

@ -85,6 +85,9 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: "fedora34" name: "fedora34"
- name: "Checksum"
shell: bash
run: "for f in wezterm-*.rpm ; do sha256sum $f > $f.sha256 ; done"
- name: "Create pre-release" - name: "Create pre-release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -94,4 +97,4 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash shell: bash
run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.rpm" run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.rpm *.sha256"

View File

@ -102,8 +102,11 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: "fedora35" name: "fedora35"
- name: "Checksum"
shell: bash
run: "for f in wezterm-*.rpm ; do sha256sum $f > $f.sha256 ; done"
- name: "Upload to Nightly Release" - name: "Upload to Nightly Release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.rpm" run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.rpm *.sha256"

View File

@ -85,6 +85,9 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: "fedora35" name: "fedora35"
- name: "Checksum"
shell: bash
run: "for f in wezterm-*.rpm ; do sha256sum $f > $f.sha256 ; done"
- name: "Create pre-release" - name: "Create pre-release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -94,4 +97,4 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash shell: bash
run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.rpm" run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.rpm *.sha256"

View File

@ -102,8 +102,11 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: "fedora36" name: "fedora36"
- name: "Checksum"
shell: bash
run: "for f in wezterm-*.rpm ; do sha256sum $f > $f.sha256 ; done"
- name: "Upload to Nightly Release" - name: "Upload to Nightly Release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.rpm" run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.rpm *.sha256"

View File

@ -85,6 +85,9 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: "fedora36" name: "fedora36"
- name: "Checksum"
shell: bash
run: "for f in wezterm-*.rpm ; do sha256sum $f > $f.sha256 ; done"
- name: "Create pre-release" - name: "Create pre-release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -94,4 +97,4 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash shell: bash
run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.rpm" run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.rpm *.sha256"

View File

@ -83,8 +83,11 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: "macos" name: "macos"
- name: "Checksum"
shell: bash
run: "for f in WezTerm-*.zip ; do sha256sum $f > $f.sha256 ; done"
- name: "Upload to Nightly Release" - name: "Upload to Nightly Release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly WezTerm-*.zip" run: "bash ci/retry.sh gh release upload --clobber nightly WezTerm-*.zip *.sha256"

View File

@ -81,6 +81,9 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: "macos" name: "macos"
- name: "Checksum"
shell: bash
run: "for f in WezTerm-*.zip ; do sha256sum $f > $f.sha256 ; done"
- name: "Create pre-release" - name: "Create pre-release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -90,4 +93,4 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash shell: bash
run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) WezTerm-*.zip" run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) WezTerm-*.zip *.sha256"

View File

@ -105,8 +105,11 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: "opensuse_leap" name: "opensuse_leap"
- name: "Checksum"
shell: bash
run: "for f in wezterm-*.rpm ; do sha256sum $f > $f.sha256 ; done"
- name: "Upload to Nightly Release" - name: "Upload to Nightly Release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.rpm" run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.rpm *.sha256"

View File

@ -88,6 +88,9 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: "opensuse_leap" name: "opensuse_leap"
- name: "Checksum"
shell: bash
run: "for f in wezterm-*.rpm ; do sha256sum $f > $f.sha256 ; done"
- name: "Create pre-release" - name: "Create pre-release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -97,4 +100,4 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash shell: bash
run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.rpm" run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.rpm *.sha256"

View File

@ -105,8 +105,11 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: "opensuse_tumbleweed" name: "opensuse_tumbleweed"
- name: "Checksum"
shell: bash
run: "for f in wezterm-*.rpm ; do sha256sum $f > $f.sha256 ; done"
- name: "Upload to Nightly Release" - name: "Upload to Nightly Release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.rpm" run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.rpm *.sha256"

View File

@ -88,6 +88,9 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: "opensuse_tumbleweed" name: "opensuse_tumbleweed"
- name: "Checksum"
shell: bash
run: "for f in wezterm-*.rpm ; do sha256sum $f > $f.sha256 ; done"
- name: "Create pre-release" - name: "Create pre-release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -97,4 +100,4 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash shell: bash
run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.rpm" run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.rpm *.sha256"

View File

@ -95,8 +95,11 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: "ubuntu18" name: "ubuntu18"
- name: "Checksum"
shell: bash
run: "for f in wezterm-*.deb wezterm-*.xz *src.tar.gz *.AppImage *.zsync ; do sha256sum $f > $f.sha256 ; done"
- name: "Upload to Nightly Release" - name: "Upload to Nightly Release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.deb wezterm-*.xz *src.tar.gz *.AppImage *.zsync" run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.deb wezterm-*.xz *src.tar.gz *.AppImage *.zsync *.sha256"

View File

@ -92,6 +92,9 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: "ubuntu18" name: "ubuntu18"
- name: "Checksum"
shell: bash
run: "for f in wezterm-*.deb wezterm-*.xz *src.tar.gz *.AppImage *.zsync ; do sha256sum $f > $f.sha256 ; done"
- name: "Create pre-release" - name: "Create pre-release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -101,4 +104,4 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash shell: bash
run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.deb wezterm-*.xz *src.tar.gz *.AppImage *.zsync" run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.deb wezterm-*.xz *src.tar.gz *.AppImage *.zsync *.sha256"

View File

@ -107,8 +107,11 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: "ubuntu20.04" name: "ubuntu20.04"
- name: "Checksum"
shell: bash
run: "for f in wezterm-*.deb wezterm-*.xz ; do sha256sum $f > $f.sha256 ; done"
- name: "Upload to Nightly Release" - name: "Upload to Nightly Release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.deb wezterm-*.xz" run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.deb wezterm-*.xz *.sha256"

View File

@ -90,6 +90,9 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: "ubuntu20.04" name: "ubuntu20.04"
- name: "Checksum"
shell: bash
run: "for f in wezterm-*.deb wezterm-*.xz ; do sha256sum $f > $f.sha256 ; done"
- name: "Create pre-release" - name: "Create pre-release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -99,4 +102,4 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash shell: bash
run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.deb wezterm-*.xz" run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.deb wezterm-*.xz *.sha256"

View File

@ -107,8 +107,11 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: "ubuntu22.04" name: "ubuntu22.04"
- name: "Checksum"
shell: bash
run: "for f in wezterm-*.deb wezterm-*.xz ; do sha256sum $f > $f.sha256 ; done"
- name: "Upload to Nightly Release" - name: "Upload to Nightly Release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.deb wezterm-*.xz" run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.deb wezterm-*.xz *.sha256"

View File

@ -90,6 +90,9 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: "ubuntu22.04" name: "ubuntu22.04"
- name: "Checksum"
shell: bash
run: "for f in wezterm-*.deb wezterm-*.xz ; do sha256sum $f > $f.sha256 ; done"
- name: "Create pre-release" - name: "Create pre-release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -99,4 +102,4 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash shell: bash
run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.deb wezterm-*.xz" run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.deb wezterm-*.xz *.sha256"

View File

@ -81,8 +81,11 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: "windows" name: "windows"
- name: "Checksum"
shell: bash
run: "for f in WezTerm-*.zip WezTerm-*.exe ; do sha256sum $f > $f.sha256 ; done"
- name: "Upload to Nightly Release" - name: "Upload to Nightly Release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly WezTerm-*.zip WezTerm-*.exe" run: "bash ci/retry.sh gh release upload --clobber nightly WezTerm-*.zip WezTerm-*.exe *.sha256"

View File

@ -78,6 +78,9 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: "windows" name: "windows"
- name: "Checksum"
shell: bash
run: "for f in WezTerm-*.zip WezTerm-*.exe ; do sha256sum $f > $f.sha256 ; done"
- name: "Create pre-release" - name: "Create pre-release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -87,4 +90,4 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash shell: bash
run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) WezTerm-*.zip WezTerm-*.exe" run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) WezTerm-*.zip WezTerm-*.exe *.sha256"

View File

@ -499,6 +499,12 @@ cargo build --all --release""",
steps = [] steps = []
patterns = self.asset_patterns() patterns = self.asset_patterns()
checksum = RunStep(
"Checksum",
f"for f in {' '.join(patterns)} ; do sha256sum $f > $f.sha256 ; done",
)
patterns.append("*.sha256")
glob = " ".join(patterns) glob = " ".join(patterns)
return steps + [ return steps + [
@ -507,6 +513,7 @@ cargo build --all --release""",
action="actions/download-artifact@v3", action="actions/download-artifact@v3",
params={"name": self.name}, params={"name": self.name},
), ),
checksum,
RunStep( RunStep(
"Upload to Nightly Release", "Upload to Nightly Release",
f"bash ci/retry.sh gh release upload --clobber nightly {glob}", f"bash ci/retry.sh gh release upload --clobber nightly {glob}",
@ -518,6 +525,12 @@ cargo build --all --release""",
steps = [] steps = []
patterns = self.asset_patterns() patterns = self.asset_patterns()
checksum = RunStep(
"Checksum",
f"for f in {' '.join(patterns)} ; do sha256sum $f > $f.sha256 ; done",
)
patterns.append("*.sha256")
glob = " ".join(patterns) glob = " ".join(patterns)
return steps + [ return steps + [
@ -526,6 +539,7 @@ cargo build --all --release""",
action="actions/download-artifact@v3", action="actions/download-artifact@v3",
params={"name": self.name}, params={"name": self.name},
), ),
checksum,
RunStep( RunStep(
"Create pre-release", "Create pre-release",
"bash ci/retry.sh bash ci/create-release.sh $(ci/tag-name.sh)", "bash ci/retry.sh bash ci/create-release.sh $(ci/tag-name.sh)",