Skip to content

Commit

Permalink
ci: use upload-debian-pkg-action@v2
Browse files Browse the repository at this point in the history
  • Loading branch information
furmur committed Dec 14, 2024
1 parent 517786a commit 9d26d9b
Showing 1 changed file with 7 additions and 24 deletions.
31 changes: 7 additions & 24 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,33 +48,16 @@ jobs:
runs-on: ubuntu-latest
container: debian:bookworm
steps:
- name: install curl
run: apt update && apt -y --no-install-recommends install curl ca-certificates ruby gpg gpg-agent

- name: clone yeti-pg-ext repo for ci/deploy.sh
uses: actions/checkout@v4

- uses: actions/download-artifact@v3
with:
name: pkg

- name: upload pkg to the bookworm 1.13
run: ci/deploy.sh bookworm 1.13 main *.deb
env:
PKG_API_BASE: ${{secrets.PKG_API_BASE}}

- name: Setup deb-s3
run: gem install deb-s3

- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
- uses: yeti-switch/upload-debian-pkg-action@v2
with:
pkgs: '*.deb'
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}

- name: Upload package
env:
AWS_ACCESS_KEY_ID: ${{secrets.DEB_AWS_ACCESS_KEY_ID}}
AWS_SECRET_ACCESS_KEY: ${{secrets.DEB_AWS_SECRET_ACCESS_KEY}}
AWS_ENDPOINT_URL: ${{secrets.DEB_AWS_ENDPOINT}}
run: deb-s3 upload --bucket=${{secrets.DEB_AWS_BUCKET}} --prefix=1.13 --codename=bookworm --component=main --visibility=nil --force-path-style --sign=B104E10C35895CFAC0F91473C8D3BC80B6F22179 --gpg-options "\-\-pinentry-mode=loopback \-\-no-tty \-\-batch \-\-yes \-\-passphrase ${{ secrets.GPG_PASSPHRASE }}" *.deb
gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }}
s3_access_key_id: ${{ secrets.DEB_AWS_ACCESS_KEY_ID }}
s3_secret_access_key: ${{ secrets.DEB_AWS_SECRET_ACCESS_KEY }}
s3_endpoint_url: ${{ secrets.DEB_AWS_ENDPOINT }}
if: startsWith(github.ref, 'refs/tags/v')

0 comments on commit 9d26d9b

Please sign in to comment.