From a9c73ab04c897ae1f28a95baf469f3d5f7872430 Mon Sep 17 00:00:00 2001 From: jon4hz Date: Tue, 27 Dec 2022 00:19:49 +0100 Subject: [PATCH 1/2] ci: add aur release --- .github/workflows/release_build.yml | 1 + .goreleaser.yaml | 22 +++++++++++++++++++--- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release_build.yml b/.github/workflows/release_build.yml index c5fd9034f..da2a29435 100644 --- a/.github/workflows/release_build.yml +++ b/.github/workflows/release_build.yml @@ -41,6 +41,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GO_RELEASER_GITHUB_TOKEN }} FURY_TOKEN: ${{ secrets.FURYPUSHTOKEN }} + AUR_KEY: ${{ secrets.AUR_KEY }} - uses: actions/setup-python@v4 - run: pip install --upgrade cloudsmith-cli - name: Publish to CloudSmith diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 5e94e0de6..b5703e81f 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -30,13 +30,13 @@ builds: - openbsd - windows goarch: - - 386 + - "386" - amd64 - arm - arm64 goarm: - - 6 - - 7 + - "6" + - "7" ignore: - goos: windows goarch: "386" @@ -102,6 +102,22 @@ scoop: homepage: "https://infisical.com" description: "The official Infisical CLI" license: Apache-2.0 +aurs: + - + name: infisical-bin + homepage: "https://infisical.com" + description: "The official Infisical CLI" + maintainers: + - Infisical, Inc + license: Apache-2.0 + private_key: '{{ .Env.AUR_KEY }}' + git_url: 'ssh://aur@aur.archlinux.org/infisical-bin.git' + package: |- + # bin + install -Dm755 "./infisical" "${pkgdir}/usr/bin/infisical" + # license + install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/infisical/LICENSE" + # dockers: # - dockerfile: goreleaser.dockerfile # goos: linux From 09a04d456e7431b4c3900372cd25a7ab75ab1ce7 Mon Sep 17 00:00:00 2001 From: jon4hz Date: Tue, 27 Dec 2022 00:24:19 +0100 Subject: [PATCH 2/2] chore: set license to MIT --- .goreleaser.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index b5703e81f..0b348b71a 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -85,7 +85,7 @@ nfpms: homepage: https://infisical.com/ maintainer: Infisical, Inc description: The offical Infisical CLI - license: Apache 2.0 + license: MIT formats: - rpm - deb @@ -101,7 +101,7 @@ scoop: email: ai@infisical.com homepage: "https://infisical.com" description: "The official Infisical CLI" - license: Apache-2.0 + license: MIT aurs: - name: infisical-bin @@ -109,7 +109,7 @@ aurs: description: "The official Infisical CLI" maintainers: - Infisical, Inc - license: Apache-2.0 + license: MIT private_key: '{{ .Env.AUR_KEY }}' git_url: 'ssh://aur@aur.archlinux.org/infisical-bin.git' package: |-