diff --git a/.github/aur/flux-bin/publish.sh b/.github/aur/flux-bin/publish.sh index 8f661530..a14dfefa 100755 --- a/.github/aur/flux-bin/publish.sh +++ b/.github/aur/flux-bin/publish.sh @@ -13,6 +13,9 @@ cd $WD export GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" +eval $(ssh-agent -s) +ssh-add <(echo "$AUR_BOT_SSH_PRIVATE_KEY") + rm -rf .pkg git clone aur@aur.archlinux.org:$PKGNAME .pkg 2>&1 diff --git a/.github/aur/flux-go/publish.sh b/.github/aur/flux-go/publish.sh index ed84332c..71ec8b2c 100755 --- a/.github/aur/flux-go/publish.sh +++ b/.github/aur/flux-go/publish.sh @@ -13,6 +13,9 @@ cd $WD export GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" +eval $(ssh-agent -s) +ssh-add <(echo "$AUR_BOT_SSH_PRIVATE_KEY") + rm -rf .pkg git clone aur@aur.archlinux.org:$PKGNAME .pkg 2>&1 diff --git a/.github/aur/flux-scm/publish.sh b/.github/aur/flux-scm/publish.sh index e599e71f..c0e86c78 100755 --- a/.github/aur/flux-scm/publish.sh +++ b/.github/aur/flux-scm/publish.sh @@ -13,6 +13,9 @@ cd $WD export GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" +eval $(ssh-agent -s) +ssh-add <(echo "$AUR_BOT_SSH_PRIVATE_KEY") + rm -rf .pkg git clone aur@aur.archlinux.org:$PKGNAME .pkg 2>&1 diff --git a/.goreleaser.yml b/.goreleaser.yml index d652ef5c..eda823d7 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -54,19 +54,19 @@ publishers: - name: aur-pkg-bin ids: - nix + env: + - AUR_BOT_SSH_PRIVATE_KEY={{ .Env.AUR_BOT_SSH_PRIVATE_KEY }} cmd: | - eval $(ssh-agent -s) - ssh-add <(echo "{{ .Env.AUR_BOT_SSH_PRIVATE_KEY }}") .github/aur/flux-bin/publish.sh {{ .Version }} - name: aur-pkg-scm + env: + - AUR_BOT_SSH_PRIVATE_KEY={{ .Env.AUR_BOT_SSH_PRIVATE_KEY }} cmd: | - eval $(ssh-agent -s) - ssh-add <(echo "{{ .Env.AUR_BOT_SSH_PRIVATE_KEY }}") .github/aur/flux-scm/publish.sh {{ .Version }} - name: aur-pkg-go + env: + - AUR_BOT_SSH_PRIVATE_KEY={{ .Env.AUR_BOT_SSH_PRIVATE_KEY }} cmd: | - eval $(ssh-agent -s) - ssh-add <(echo "{{ .Env.AUR_BOT_SSH_PRIVATE_KEY }}") .github/aur/flux-go/publish.sh {{ .Version }} release: extra_files: