Update pd-short-urls.csv #28
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: Validate CSV of URLs and deploy changes | |
on: [push] | |
jobs: | |
test-and-deploy-urls: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12.x' | |
- name: Install dependencies | |
run: pip install -r build-short-urls/requirements.txt --upgrade pip && pip install pylint | |
- name: Lint code | |
run: cd build-short-urls && pylint *.py | |
- name: validate CSV | |
run: python build-short-urls/validate_redirects.py | |
- name: deploy short URLs | |
run: python build-short-urls/build_redirects.py | |
env: # Or as an environment variable | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} |