Skip to content

Commit

Permalink
chore: create custom cloudflare-pages-deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
tjmaynes committed Dec 28, 2023
1 parent 4fcd09e commit a6ddea1
Show file tree
Hide file tree
Showing 5 changed files with 1,438 additions and 13 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/ci.yml
Expand Up @@ -17,14 +17,8 @@ jobs:
node-version-file: ".node-version"
- name: 🔨 Install Dependencies 🔨
run: sudo apt-get update && sudo apt-get install make
- name: 🧪 Build Website 🧪
run: make artifact
- name: 🚀 Deploy Website 🚀
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: tjmaynes-site
directory: public/
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
wranglerVersion: "3"
run: make deploy
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
4 changes: 4 additions & 0 deletions Makefile
Expand Up @@ -24,6 +24,10 @@ download_career_files:

artifact: install build test download_career_files

deploy: artifact
chmod +x ./script/cloudflare-pages-deploy.sh
./script/cloudflare-pages-deploy.sh "./public" "tjmaynes-site"

ship_it: test
git push

Expand Down

0 comments on commit a6ddea1

Please sign in to comment.