-
Notifications
You must be signed in to change notification settings - Fork 47
47 lines (40 loc) · 1.11 KB
/
aggregate.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
44
45
46
47
name: Aggregate sources and rebuild
on:
workflow_dispatch:
schedule:
# 19:42 UTC every Sunday
- cron: "42 19 * * 0"
# push:
# branches:
# - gh-pages
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: gh-pages
fetch-depth: 1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
run: |
python -m pip install -r scripts/requirements.txt
- name: Aggregate and build
run: |
python scripts/build.py auto aggregate &&
python scripts/build.py auto
- name: Commit files
run: |
git config user.name 'GitHub Action' &&
git config user.email '[email protected]' &&
git add -u . &&
git commit -m "cd: auto build at $(TZ=UTC date +'%F'T'%T'Z)" &&
git push --force-with-lease