generated from Itsblue/github-pages-deb-repo
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 1.03 KB
/
build-and-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
name: Build and Deploy
on:
push:
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
with:
lfs: true
- name: Install and Build 🔧
run: |
sudo apt update && sudo apt install reprepro python3 python3-pip python3-mako
# import keys
gpg2 --import deploy/pub.gpg
echo -e "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --import --no-tty --batch --yes
mkdir incoming
cp packages/*/*/* incoming/
reprepro -V processincoming default
reprepro -V export
mv dists deploy
mv pool deploy
mv deploy/deploy-disclaimer.md deploy/README.md
python3 createStaticDirectoryListing.py deploy --indexPage README.md
- name: Deploy 🚀
if: ${{ github.ref == 'refs/heads/main' }}
uses: JamesIves/[email protected]
with:
branch: deploy
folder: deploy