.github/workflows/deploy.yml #26
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
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/" |