-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (38 loc) · 1006 Bytes
/
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
36
37
38
39
40
41
42
43
name: Generate github pages
on:
push:
branches:
- main
schedule:
- cron: '0-5 0-1 * * *'
jobs:
build:
runs-on: ubuntu-latest
container:
image: quay.io/fedora/fedora:36
steps:
- name: Install dependencies
run: |
dnf install -y \
git \
python3-copr \
python3-hawkey \
python3-jinja2 \
python3-koji
- name: Fetch sources
uses: actions/checkout@v3
- name: Generate HTML
run: |
# Work around https://github.com/actions/checkout/issues/760
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git config --global user.email "[email protected]"
git config --global user.name "Github Pages"
python3 update.py
mkdir html
mv *.html html/
git fetch origin gh-pages
git checkout gh-pages
mv html/*.html .
git add *.html
git commit -a -m "Update pages"
git push origin gh-pages:gh-pages