Skip to content

Commit 9338d6d

Browse files
change workflow to update metadata
1 parent 1d5b909 commit 9338d6d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/flatpak.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
name: Deploy flatpak to self-hosted repository
2-
on:
3-
push:
4-
tags:
5-
- "v*"
2+
on: [push]
63
jobs:
74
deploy:
85
name: Deploy
@@ -18,13 +15,16 @@ jobs:
1815

1916
- name: Deploy to Server
2017
run: |
21-
ssh -o StrictHostKeyChecking=no ${{ secrets.USERNAME }}@${{ secrets.SERVER_IP }} << 'EOF'
18+
ssh -o StrictHostKeyChecking=no ${{ secrets.USERNAME }}@repo.tkmm.org << 'EOF'
19+
sudo apt update
20+
sudo apt upgrade -y
21+
sudo apt install -y jq xmlstarlet flatpak flatpak-builder
2222
cd ~/flathub
2323
git pull origin tkmm-pr
24+
bash update_metadata.sh
2425
flatpak-builder --user --repo=/var/www/html/repo --install-deps-from=flathub --force-clean build io.github.tkmm_team.tkmm.yml --disable-cache
2526
flatpak build-export /var/www/html/repo build
26-
flatpak build-update-repo /var/www/html/repo
27+
flatpak build-update-repo --generate-static-deltas /var/www/html/repo
2728
EOF
2829
env:
29-
SERVER_IP: ${{ secrets.SERVER_IP }}
30-
USERNAME: ${{ secrets.SERVER_USERNAME }}
30+
USERNAME: ${{ secrets.USERNAME }}

0 commit comments

Comments
 (0)