final fix
CICD / Explore-Gitea-Actions (push) Successful in 1m12s
Details
CICD / Explore-Gitea-Actions (push) Successful in 1m12s
Details
This commit is contained in:
parent
8d9fe0dcca
commit
0b31dc69d4
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Reference in New Issue