-
Notifications
You must be signed in to change notification settings - Fork 10
54 lines (47 loc) · 1.51 KB
/
fetch-contributors.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
48
49
50
51
52
53
54
name: "fetch github contributors once a daily"
on:
schedule:
- cron: "0 0 * * *"
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 0
- name: add new contributors
shell: bash
run: |
chmod -R u+rwx content/static/fetch_github_contributors.sh
content/static/fetch_github_contributors.sh
git config user.name 'DailyMerge'
git config user.email '[email protected]'
if [[ `git status --porcelain` ]]; then
git add content/static/github_contributors.json
git commit -m "Automated: daily contributor merge"
git push
fi
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Setup pelican
shell: bash
run: |
pip install wheel pyclean pelican beautifulsoup4
git submodule update --init
- name: Build
run: |
pyclean ./
pelican --delete-output-directory --debug --fatal errors content -s publishconf.py
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
enable_jekyll: false
publish_dir: ./output
cname: www.datalad.org
user_name: 'AutoBuild'
user_email: '[email protected]'
commit_message: ${{ github.event.head_commit.message }}