Update PublishDistribution.yml

[skip ci]
This commit is contained in:
Masterain
2023-01-14 17:08:50 -08:00
committed by GitHub
parent 5126337138
commit 5668931230

View File

@@ -39,3 +39,13 @@ jobs:
EOF
rclone copy ./release-download/* dgpODCN:/releases/
# Purge Patch System Cache
- name: Purge Patch
env:
PATCH_HOSTS: ${{ secrets.PATCH_HOSTS }}
PURGE_TOKEN: ${{ secrets.PURGE_TOKEN }}
PURGE_URL: ${{ secrets.PURGE_URL }}
run: |
sudo echo "$PATCH_HOSTS" | sudo tee -a /etc/hosts
curl --header "Authorization: token $PURGE_TOKEN" $PURGE_URL