Skip to content

.github/workflows/deploy.yml #23

.github/workflows/deploy.yml

.github/workflows/deploy.yml #23

Workflow file for this run

on:
workflow_dispatch:
push:
branches:
- 'master'
schedule:
- cron: '0 0 * * 0'
env:
KNOWN_HOST: ${{vars.KNOWN_HOST}}
SSH_USERNAME: ${{secrets.SSH_USERNAME}}
SSH_KEY: ${{secrets.SSH_KEY}}
OPML_BLACKLIST: ${{secrets.OPML_BLACKLIST}}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pipenv'
- name: Install pipenv
run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
- name: Install python dependencies
run: pipenv install
- name: Fetch latest list of OSR blogs
run: curl -L "https://docs.google.com/spreadsheets/d/10qvE1s62UA55pleTW54RAZZw-oJQV8yYGZb_UtYo9TE/export?format=csv" -o osr.csv
- name: Generate new OSR opml file.
run: pipenv run python opml.py -l
- name: Copy new osr.json and osr.opml files to save.vs.totalpartykill.ca
uses: appleboy/[email protected]
with:
host: save.vs.totalpartykill.ca
username: ${{ secrets.SSH_USERNAME }}
password: ${{ secrets.SSH_KEY }}
source: "osr.json,osr.opml"
target: "~/save.vs.totalpartykill.ca/grab-bag/"