Skip to content

Commit

Permalink
feat(ci): add manual workflow to refresh Zama PyPI
Browse files Browse the repository at this point in the history
This is needed in case manual changes are made. It will update html indexes and invalidate the cloudfront cache
  • Loading branch information
youben11 committed Jun 14, 2024
1 parent d212aa1 commit f2b6a83
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/refresh_zama_pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Refresh Zama PyPI

on:
workflow_dispatch:

jobs:
refresh:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3

- name: Update index and invalidate cache
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_IAM_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_IAM_KEY }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_REGION }}
S3_BUCKET_NAME: ${{ secrets.AWS_S3_PYPI_BUCKET_NAME }}
CLOUDFRONT_DISTRIBUTION_ID: ${{ secrets.AWS_CLOUDFRONT_PYPI_DISTRIBUTION_ID }}
run: |
pip install boto3 bigtree
# update indexes and invalidate cloudfront cache
python .github/workflows/scripts/s3_update_html_indexes.py

0 comments on commit f2b6a83

Please sign in to comment.