Skip to content

Commit

Permalink
I really hate M$ docs
Browse files Browse the repository at this point in the history
  • Loading branch information
qualityshepherd committed Aug 12, 2024
1 parent be2e4eb commit 21dd5a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/deploy2pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,9 @@ jobs:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
- name: Get ENVs
env:
BEARER: ${{ secrets.BEARER }}
BRINE_TOKEN: ${{ secrets.BRINE_TOKEN }}
- name: Purge cache
run: npm run gh_purge
run: npm run purge
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"pretty": "standard --fix",
"pack": "webpack",
"purge": "curl -X POST \"https://api.cloudflare.com/client/v4/zones/$BRINE_TOKEN/purge_cache\" -H \"Authorization: Bearer $BEARER\" -H \"Content-Type: application/json\" --data '{\"purge_everything\":true}'",
"gh_purge": "curl -X POST \"https://api.cloudflare.com/client/v4/zones/${{secrets.BRINE_TOKEN}}/purge_cache\" -H \"Authorization: Bearer ${{secrets.BEARER}}\" -H \"Content-Type: application/json\" --data '{\"purge_everything\":true}'",
"start": "npm run pack",
"server": "http-server -p 4242",
"restart": "npm start; npm run server"
Expand Down

0 comments on commit 21dd5a9

Please sign in to comment.