forked from mauforonda/mastodon_digest
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (36 loc) · 1007 Bytes
/
update.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
name: My Mastodon Digest
on:
schedule:
- cron: '0 06,18 * * *'
workflow_dispatch:
jobs:
update:
name: digest
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@master
with:
ref: main
- name: python setup
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: python things
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: run digest
env:
MASTODON_TOKEN: ${{ secrets.MASTODON_TOKEN }}
MASTODON_BASE_URL: ${{ secrets.MASTODON_BASE_URL }}
MASTODON_USERNAME: ${{ secrets.MASTODON_USERNAME }}
run: |
python run.py -n 12 -s ExtendedSimpleWeighted -t lax
- name: publish
uses: crazy-max/ghaction-github-pages@v3
with:
target_branch: gh-pages
build_dir: render
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}