final fix
CICD / Explore-Gitea-Actions (push) Successful in 1m12s Details

This commit is contained in:
Isaac Johnson 2026-06-25 22:17:46 -05:00
parent 8d9fe0dcca
commit 0b31dc69d4
1 changed files with 0 additions and 5 deletions

View File

@ -57,17 +57,12 @@ jobs:
- name: Sync to AWS
run: |
paths=$(find ./public -type f -name "*.html" | sed -e 's|^./public/|/|' -e 's/.*/"&"/' | tr '\n' ' ')
echo "paths: $paths"
echo "----"
set -x
echo aws cloudfront create-invalidation --distribution-id EWYXMJ6L92Q6I --paths $paths | base64 -w 0
cat << EOF > myaction.sh
aws cloudfront create-invalidation --distribution-id EWYXMJ6L92Q6I --paths $paths
EOF
cat myaction.sh | base64 -w 0
chmod 755 ./myaction.sh
./myaction.sh
aws cloudfront create-invalidation --distribution-id EWYXMJ6L92Q6I --paths $paths
if: gitea.ref == 'refs/heads/main'
env: # Or as an environment variable
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWSSECRETKEY }}