Skip to content

Update deploy.yml

Update deploy.yml #9

Workflow file for this run

name: build & deploy
on: [push]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: checkout πŸ›ŽοΈ
uses: actions/checkout@v4
- name: install & build πŸ”§
run: |
npm install
npm run build:prod
- name: deploy πŸš€
uses: JamesIves/github-pages-deploy-action@4.1.5
with:
branch: gh-pages
folder: dist
- name: purge
run: ./node_modules/cloudflare-cli/bin/cfcli -e ${{ secrets.CF_API_EMAIL }} -d ${{ secrets.CF_API_DOMAIN }} -k ${{ secrets.CF_API_KEY }} purge