From c15f1ae5c4625902c82d64e777b3ddc3787ba507 Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Sun, 5 Apr 2026 19:51:42 +0200 Subject: [PATCH] chore(actions): Publish Arch Linux package --- .gitea/workflows/release.yaml | 25 +++++++++++++++++++++++++ README.md | 26 ++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 .gitea/workflows/release.yaml diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml new file mode 100644 index 0000000..45888c7 --- /dev/null +++ b/.gitea/workflows/release.yaml @@ -0,0 +1,25 @@ +name: Release + +on: + push: + tags: + - "v*" + +jobs: + archlinux: + name: Arch Linux + runs-on: ubuntu-latest + permissions: + packages: write + steps: + - name: Checkout + uses: actions/checkout@v6 + - name: Build package + uses: https://git.huizinga.dev/infra/archlinux-package-action@v4 + with: + path: . + - name: Upload package + run: | + curl --user ${{ gitea.actor }}:${{ secrets.REGISTRY_TOKEN }} \ + --upload-file "$(ls | grep -E 'crete-[0-9]+\.[0-9]+\.[0-9]+-[0-9]+-.*.pkg.tar.zst')" \ + https://git.huizinga.dev/api/packages/infra/arch/core diff --git a/README.md b/README.md index 6ddf6ae..37465a8 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,32 @@ and render jinja templates. ## Installation +### Arch + +First import the verification key: + +```bash +wget https://git.huizinga.dev/api/packages/infra/arch/repository.key -O /tmp/repository.key +sudo pacman-key --add /tmp/repository.key +sudo pacman-key --lsign-key $(gpg --show-keys /tmp/repository.key | sed -n 2p) +``` + +And add the following to `/etc/pacman.conf`: + +```ini +[infra] +SigLevel = Required +Server = https://git.huizinga.dev/api/packages/infra/arch/core/$arch +``` + +You can then install `crete` by running: + +```bash +sudo pacman -Sy crete +``` + +### Cargo install + Add the following to `~/.cargo.config.toml`: ```toml