Skip to content

Deploy website

Deploy website #327

Workflow file for this run

name: Deploy website
on:
push:
branches:
- 'main'
paths:
- 'data/final-output/overall-summary-stats.csv'
- 'who_owns_what/**'
workflow_dispatch:
schedule:
- cron: '15 1 * * 1-5' # Mon-Fri, 1:15AM UTC / 7PM CST
jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: cp ../data/final-output/LandlordProperties-with-OwnerNetworks.csv data/LandlordProperties-with-OwnerNetworks.csv
working-directory: who_owns_what
- run: cp ../data/final-output/Landlord-network-summary-statistics.csv data/Landlord-network-summary-statistics.csv
working-directory: who_owns_what
- run: cp ../data/final-output/overall-summary-stats.csv data/overall-summary-stats.csv
working-directory: who_owns_what
- run: cp -r ../images/networks-svg/. priv/static/images/networks
working-directory: who_owns_what
- run: flyctl deploy --remote-only
working-directory: who_owns_what
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}