-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (29 loc) · 1 KB
/
gh-pages.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
name: Deploy
on:
push:
branches:
- main
schedule:
- cron: "0 0 * * *"
jobs:
Deploy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y flatpak python3-gi gir1.2-flatpak-1.0 gir1.2-ostree-1.0
wget https://raw.githubusercontent.com/gasinvein/flatpak-remote-metadata/master/flatpak-remote-metadata.py
python3 -m pip install -r requirements.txt
- name: Run flatpak-remote-metadata
run: python3 flatpak-remote-metadata.py -u https://dl.flathub.org/repo flathub > repodata.json
- name: Update data
run: python3 ./update.py
- name: Publish
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./web
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'