SEO Image Update #46
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
name: SEO Image Update | |
on: | |
schedule: | |
- cron: "0 10 * * 5" # Runs "at 10 UTC every Friday" (see https://crontab.guru) | |
workflow_dispatch: # Runs on manual trigger | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: |- | |
python -m pip install --upgrade pip | |
pip install Pillow==9.3.0 | |
- name: Create Images | |
run: python code-generators/seo-image-creator.py | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_KEY }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET }} | |
aws-region: us-west-1 | |
- name: Copy files to the S3 website content bucket | |
run: |- | |
mkdir -p ./Resources/social/writing-algorithms/indicators/supported-indicators | |
cp ./Resources/indicators/images/* ./Resources/social/writing-algorithms/indicators/supported-indicators | |
aws s3 cp ./Resources/social s3://${{ secrets.AWS_BUCKET }} --recursive --acl bucket-owner-full-control --exclude "*" --include "*.png" --content-type "image/png" |