Skip to content

Commit 3b312f8

Browse files
author
Tim Schneeberger
authored
Create package-deb.yml
1 parent 2b2f29e commit 3b312f8

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/package-deb.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,45 @@ jobs:
180180
remote_path: '/srv/http/nightly.timschneeberger.me/jamesdsp-linux/'
181181
args: '-o ConnectTimeout=5'
182182

183+
update-ppa:
184+
runs-on: ubuntu-latest
185+
needs: [build-deb-amd64]
186+
strategy:
187+
matrix:
188+
flavor: [pulse, pipewire]
189+
190+
steps:
191+
- uses: actions/checkout@v2
192+
with:
193+
repository: 'thepbone/PPA-Repository'
194+
token: ${{ secrets.GITHUB_TB_TOKEN }}
195+
196+
- name: Download package artifact
197+
uses: actions/download-artifact@v2
198+
with:
199+
name: jamesdsp-${{ matrix.flavor }}_${{steps.version.outputs.version}}_amd64.deb
200+
201+
- name: Update packages
202+
run: |
203+
sudo apt install dpkg-dev apt-utils
204+
export EMAIL = "[email protected]"
205+
dpkg-scanpackages --multiversion . > Packages
206+
gzip -k -f Packages
207+
apt-ftparchive release . > Release
208+
gpg --default-key "${EMAIL}" -abs -o - Release > Release.gpg
209+
gpg --default-key "${EMAIL}" --clearsign -o - Release > InRelease
210+
211+
- name: Push to PPA
212+
uses: cpina/github-action-push-to-another-repository@main
213+
env:
214+
API_TOKEN_GITHUB: ${{ secrets.GITHUB_TB_TOKEN }}
215+
with:
216+
source-directory: '.'
217+
destination-github-username: 'ThePBone'
218+
destination-repository-name: 'PPA-Repository'
219+
user-email: [email protected]
220+
target-branch: master
221+
183222
attach-to-release:
184223
runs-on: ubuntu-latest
185224
needs: [build-deb-amd64]

0 commit comments

Comments
 (0)