diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 60f36c45..a102ad79 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -71,3 +71,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN_REPO }} SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }} + AUR_KEY: ${{ secrets.AUR_KEY }} diff --git a/.goreleaser.yml b/.goreleaser.yml index 39623b30..32079274 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -163,7 +163,6 @@ snapcrafts: * `sudo lego --email="you@example.com" --domains="example.com" --server=https://acme-staging-v02.api.letsencrypt.org/directory --http --http.port :8080 run channel_templates: - edge - apps: lego: command: lego @@ -171,3 +170,25 @@ snapcrafts: LEGO_PATH: /var/snap/lego/common/.lego plugs: - network-bind + +aurs: + - description: "Let's Encrypt client and ACME library written in Go" + skip_upload: false + homepage: https://go-acme.github.io/lego/ + name: 'lego-bin' + provides: + - lego + maintainers: + - "Fernandez Ludovic " + license: APACHE + private_key: "{{ .Env.AUR_KEY }}" + git_url: "ssh://aur@aur.archlinux.org/lego-bin.git" + commit_author: + name: ldez + email: ldez@users.noreply.github.com + package: |- + # Bin + install -Dm755 "./prm" "${pkgdir}/usr/bin/lego" + + # License + install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/lego/LICENSE"