-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (57 loc) · 1.77 KB
/
render.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
55
56
57
58
59
60
name: render potyarkin.com
on:
workflow_dispatch:
push:
branches:
- smallweb
schedule:
- cron: 45 4,16 * * *
jobs:
render:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: get current date for cache keys
id: date
run: |-
echo "::set-output name=date::$(/bin/date -u '+%Y%m%d')"
echo "::set-output name=month::$(/bin/date -u '+%Y%m')"
- uses: actions/cache@v3
name: pip cache
with:
path: cache/pip
key: pip-${{ hashFiles('requirements.txt') }}-${{ steps.date.outputs.month }}
restore-keys: |
pip-${{ hashFiles('requirements.txt') }}
pip-
- uses: actions/cache@v3
name: webring cache
with:
path: cache/webring
key: webring-${{ hashFiles('content/blogroll.yml') }}-${{ steps.date.outputs.date }}
restore-keys: |
webring-${{ hashFiles('content/blogroll.yml') }}
webring-
- uses: actions/cache@v3
name: whatsnew cache
with:
path: |-
cache/whatsnew
cache/whatsnew.json
cache/feedlinks.json
key: whatsnew-${{ hashFiles('content/bookmarks.yml') }}-${{ steps.date.outputs.date }}
restore-keys: |
whatsnew-${{ hashFiles('content/bookmarks.yml') }}
whatsnew-
- run: make publish
env:
PIP_CACHE_DIR: cache/pip
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: html
publish_branch: html
commit_message: |-
render: ${{ github.event.head_commit.message }}
Render static website for GitHub pages from
commit