Skip to content

Commit

Permalink
Create flatpak workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
LordBubblesDev authored Sep 5, 2024
1 parent 2b5c907 commit 4217fb3
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/flatpak.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Deploy to Server
on: [push]
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up SSH key
uses: webfactory/ssh-agent@v0.5.3
with:
ssh-private-key: ${{ secrets.SERVER_SSH_KEY }}

- name: Deploy to Server
run: |
ssh -o StrictHostKeyChecking=no ${{ secrets.USERNAME }}@${{ secrets.SERVER_IP }} << 'EOF'
cd ~/flathub
git pull origin tkmm-pr
flatpak-builder --user --repo=/var/www/html/repo --install-deps-from=flathub --force-clean build io.github.tkmm_team.tkmm.yml --disable-cache
flatpak build-export /var/www/html/repo build
flatpak build-update-repo /var/www/html/repo
EOF
env:
SERVER_IP: ${{ secrets.SERVER_IP }}
USERNAME: ${{ secrets.SERVER_USERNAME }}

0 comments on commit 4217fb3

Please sign in to comment.