-
Notifications
You must be signed in to change notification settings - Fork 217
47 lines (40 loc) · 1.05 KB
/
apt-deploy.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
name: Deploy Release
on:
workflow_dispatch:
inputs:
tag:
description: 'Tag of release with .deb file asset attached it, for example 0.31.5'
required: true
jobs:
apt_deploy:
runs-on: ubuntu-latest
name: Deploy Release
env:
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
GPG_SECRET_KEY_BASE64: ${{ secrets.GPG_SECRET_KEY_BASE64 }}
RELEASE_TAG: ${{ github.event.inputs.tag }}
steps:
-
name: Checkout repo
uses: actions/checkout@v3
-
name: Checkout gh-pages branch
uses: actions/checkout@v3
with:
ref: gh-pages
path: apt-repo
-
name: Download .deb file
uses: robinraju/[email protected]
with:
repository: dtcooper/raspotify
tag: ${{ github.event.inputs.tag }}
fileName: "*"
-
name: Install reprepro
run: |
sudo apt-get update
sudo apt-get install -y reprepro
-
name: Create and deploy repo
run: ./deploy-apt-repo.sh