Skip to content

Build and Deploy

Build and Deploy #218

Workflow file for this run

name: Build and Deploy
on:
schedule:
- cron: '30 4 * * *'
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip'
cache-dependency-path: 'mastodon-archive.py'
- name: Install Deps
run: pip3 install argparse Mastodon.py
- name: Build
run: |
python3 mastodon-archive.py --instance https://ricard.social \
--access-token ${{ secrets.ACCESS_TOKEN }}
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
folder: dist