Skip to content

Commit

Permalink
setup a github workflow to give me a digest every morning ready for c…
Browse files Browse the repository at this point in the history
…offee
  • Loading branch information
mauforonda committed Dec 5, 2022
1 parent 47b9b58 commit 92f230f
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: My Mastodon Digest
on:
schedule:
- cron: '0 10 * * *'
workflow_dispatch:
jobs:
update:
name: digest
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@gh-action
with:
ref: master
- 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
run: |
python run.py -n 24 -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 }}

0 comments on commit 92f230f

Please sign in to comment.