forked from mauforonda/mastodon_digest
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
setup a github workflow to give me a digest every morning ready for c…
…offee
- Loading branch information
1 parent
47b9b58
commit 92f230f
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
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
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 }} |