My Mastodon Digest #405
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |