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:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: download linux artifacts
|
- name: update pkgver in PKGBUILDs
|
||||||
uses: actions/download-artifact@v8
|
|
||||||
with:
|
|
||||||
path: artifacts
|
|
||||||
|
|
||||||
- name: prepare mcl-launcher-bin PKGBUILD
|
|
||||||
run: |
|
run: |
|
||||||
VERSION="${{ needs.release.outputs.version }}"
|
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)
|
sed -i "s|^pkgver=.*|pkgver=${VERSION}|" pkg/mcl-launcher/PKGBUILD
|
||||||
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-bin/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
|
- name: update checksums for mcl-launcher
|
||||||
run: |
|
uses: datakrama/archlinux-package-action@v2
|
||||||
sed -i "s|^pkgver=.*|pkgver=${{ needs.release.outputs.version }}|" pkg/mcl-launcher/PKGBUILD
|
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
|
- name: publish mcl-launcher to AUR
|
||||||
uses: KSXGitHub/github-actions-deploy-aur@v4.1.3
|
uses: KSXGitHub/github-actions-deploy-aur@v4.1.3
|
||||||
with:
|
with:
|
||||||
pkgname: mcl-launcher
|
pkgname: mcl-launcher
|
||||||
pkgbuild: pkg/mcl-launcher/PKGBUILD
|
pkgbuild: pkg/mcl-launcher/PKGBUILD
|
||||||
updpkgsums: true
|
assets: pkg/mcl-launcher/.SRCINFO
|
||||||
commit_username: objz
|
commit_username: objz
|
||||||
commit_email: me@objz.dev
|
commit_email: me@objz.dev
|
||||||
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
|
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
|
||||||
@@ -202,6 +196,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
pkgname: mcl-launcher-bin
|
pkgname: mcl-launcher-bin
|
||||||
pkgbuild: pkg/mcl-launcher-bin/PKGBUILD
|
pkgbuild: pkg/mcl-launcher-bin/PKGBUILD
|
||||||
|
assets: pkg/mcl-launcher-bin/.SRCINFO
|
||||||
commit_username: objz
|
commit_username: objz
|
||||||
commit_email: me@objz.dev
|
commit_email: me@objz.dev
|
||||||
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
|
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
|
||||||
|
|||||||
Reference in new issue
Block a user