-
Notifications
You must be signed in to change notification settings - Fork 4
51 lines (42 loc) · 1.53 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Release process
on:
release:
types: [ published ]
jobs:
deb12:
name: Debian 12 release package building
runs-on: ubuntu-latest
container: debian:bookworm
steps:
- run: apt update
- name: install aux deps
run: apt -y --no-install-recommends install git ca-certificates curl gnupg ruby gpg gpg-agent
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: set git safe directory
run: git config --global --add safe.directory '*'
- name: Build package
run: make package
- name: Setup deb-s3
run: gem install deb-s3
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
with:
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