Skip to content

fix: site deployment #5

fix: site deployment

fix: site deployment #5

name: Deploy Ephemurl Counter
on:
push:
branches:
- main
paths:
- "apps/counter/**"
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
steps:
- name: Checkout πŸ›Ž
uses: actions/checkout@v3
- name: Setup pnpm πŸ—
uses: pnpm/action-setup@v3
with:
version: 9
- name: Install dependencies πŸ‘¨πŸ»β€πŸ’»
run: pnpm install
- name: Build utils
run: pnpm utils build
- name: Build counter
run: pnpm counter build
- name: Publish
uses: cloudflare/pages-action@1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: ephemurl-counter
directory: ./apps/counter/dist
gitHubToken: ${{ secrets.GITHUB_TOKEN }}