diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 60f36c452f..a102ad7965 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 39623b309a..db3708029c 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://github.com/ldez/prm + 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"