diff --git a/.github/workflows/PublishDistribution.yml b/.github/workflows/PublishDistribution.yml index 10fe65f1..b6c2a28c 100644 --- a/.github/workflows/PublishDistribution.yml +++ b/.github/workflows/PublishDistribution.yml @@ -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