mirror of
https://github.com/kristoferssolo/sula-alus.git
synced 2025-10-21 20:00:36 +00:00
fix: CI/CD
This commit is contained in:
parent
753e9c84cd
commit
d7dc80eedd
14
.github/workflows/publish.yml
vendored
14
.github/workflows/publish.yml
vendored
@ -141,14 +141,24 @@ jobs:
|
|||||||
echo >> PKGBUILD
|
echo >> PKGBUILD
|
||||||
cat >> PKGBUILD << 'EOF'
|
cat >> PKGBUILD << 'EOF'
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
cd "$srcdir"
|
||||||
|
tar xf "sula-alus-x86_64-unknown-linux-gnu.tar.gz"
|
||||||
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$srcdir/"
|
cd "$srcdir"
|
||||||
install -Dm755 sula-alus "${pkgdir}/usr/bin/sula-alus"
|
install -Dm755 sula-alus "${pkgdir}/usr/bin/sula-alus"
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
- name: Generate .SRCINFO
|
- name: Generate .SRCINFO
|
||||||
run: |
|
run: |
|
||||||
docker run --rm -v "$PWD":/pkg -w /pkg archlinux:base-devel bash -c 'pacman -Sy --noconfirm base-devel && su nobody -c "makepkg --printsrcinfo" > .SRCINFO'
|
docker run --rm -v "$PWD":/pkg -w /pkg archlinux:base-devel bash -c '
|
||||||
|
useradd -m builder && \
|
||||||
|
echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && \
|
||||||
|
chown -R builder:builder /pkg && \
|
||||||
|
su builder -c "makepkg --printsrcinfo > .SRCINFO"
|
||||||
|
'
|
||||||
- name: Publish AUR package
|
- name: Publish AUR package
|
||||||
uses: KSXGitHub/github-actions-deploy-aur@v3.0.1
|
uses: KSXGitHub/github-actions-deploy-aur@v3.0.1
|
||||||
with:
|
with:
|
||||||
|
|||||||
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -142,7 +142,7 @@ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "sula-alus"
|
name = "sula-alus"
|
||||||
version = "0.1.4"
|
version = "0.1.5"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"clap",
|
"clap",
|
||||||
]
|
]
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "sula-alus"
|
name = "sula-alus"
|
||||||
authors = ["Kristofers Solo <dev@kristofers.xyz>"]
|
authors = ["Kristofers Solo <dev@kristofers.xyz>"]
|
||||||
version = "0.1.4"
|
version = "0.1.5"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "A CLI tool to encode strings and files using Sula-Alus encoding"
|
description = "A CLI tool to encode strings and files using Sula-Alus encoding"
|
||||||
repository = "https://github.com/kristoferssolo/sula-alus"
|
repository = "https://github.com/kristoferssolo/sula-alus"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user