ci: shasums
This commit is contained in:
1 parent
f821f2b482
commit
a5c38fcf6d
1 file changed
+17
-22
+17
-22
@@ -160,38 +160,32 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
- name: download linux artifacts
|
||||
uses: actions/download-artifact@v8
|
||||
with:
|
||||
path: artifacts
|
||||
|
||||
- name: prepare mcl-launcher-bin PKGBUILD
|
||||
- name: update pkgver in PKGBUILDs
|
||||
run: |
|
||||
VERSION="${{ needs.release.outputs.version }}"
|
||||
SHA_X86=$(sha256sum artifacts/mcl-x86_64-unknown-linux-gnu/mcl-x86_64-unknown-linux-gnu.tar.gz | cut -d' ' -f1)
|
||||
SHA_AARCH=$(sha256sum artifacts/mcl-aarch64-unknown-linux-gnu/mcl-aarch64-unknown-linux-gnu.tar.gz | cut -d' ' -f1)
|
||||
|
||||
# download LICENSE and README from the tag to compute their checksums
|
||||
curl -sL "https://github.com/objz/mcl/raw/v${VERSION}/LICENSE" -o /tmp/LICENSE
|
||||
curl -sL "https://github.com/objz/mcl/raw/v${VERSION}/README.md" -o /tmp/README.md
|
||||
SHA_LICENSE=$(sha256sum /tmp/LICENSE | cut -d' ' -f1)
|
||||
SHA_README=$(sha256sum /tmp/README.md | cut -d' ' -f1)
|
||||
|
||||
sed -i "s|^pkgver=.*|pkgver=${VERSION}|" pkg/mcl-launcher/PKGBUILD
|
||||
sed -i "s|^pkgver=.*|pkgver=${VERSION}|" pkg/mcl-launcher-bin/PKGBUILD
|
||||
sed -i "s|^sha256sums=.*|sha256sums=('${SHA_LICENSE}' '${SHA_README}')|" pkg/mcl-launcher-bin/PKGBUILD
|
||||
sed -i "s|^sha256sums_x86_64=.*|sha256sums_x86_64=('${SHA_X86}')|" pkg/mcl-launcher-bin/PKGBUILD
|
||||
sed -i "s|^sha256sums_aarch64=.*|sha256sums_aarch64=('${SHA_AARCH}')|" pkg/mcl-launcher-bin/PKGBUILD
|
||||
|
||||
- name: prepare mcl-launcher PKGBUILD
|
||||
run: |
|
||||
sed -i "s|^pkgver=.*|pkgver=${{ needs.release.outputs.version }}|" pkg/mcl-launcher/PKGBUILD
|
||||
- name: update checksums for mcl-launcher
|
||||
uses: datakrama/archlinux-package-action@v2
|
||||
with:
|
||||
path: pkg/mcl-launcher
|
||||
updpkgsums: true
|
||||
srcinfo: true
|
||||
|
||||
- name: update checksums for mcl-launcher-bin
|
||||
uses: datakrama/archlinux-package-action@v2
|
||||
with:
|
||||
path: pkg/mcl-launcher-bin
|
||||
updpkgsums: true
|
||||
srcinfo: true
|
||||
|
||||
- name: publish mcl-launcher to AUR
|
||||
uses: KSXGitHub/github-actions-deploy-aur@v4.1.3
|
||||
with:
|
||||
pkgname: mcl-launcher
|
||||
pkgbuild: pkg/mcl-launcher/PKGBUILD
|
||||
updpkgsums: true
|
||||
assets: pkg/mcl-launcher/.SRCINFO
|
||||
commit_username: objz
|
||||
commit_email: me@objz.dev
|
||||
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
|
||||
@@ -202,6 +196,7 @@ jobs:
|
||||
with:
|
||||
pkgname: mcl-launcher-bin
|
||||
pkgbuild: pkg/mcl-launcher-bin/PKGBUILD
|
||||
assets: pkg/mcl-launcher-bin/.SRCINFO
|
||||
commit_username: objz
|
||||
commit_email: me@objz.dev
|
||||
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
|
||||
|
||||
Reference in new issue
Block a user