Skip to content

wip: 🔕 temporary commit #2

wip: 🔕 temporary commit

wip: 🔕 temporary commit #2

name: 🚀 Deploy the website index
on:
workflow_dispatch: {}
push:
branches: [rewrite] #[master, main] # TODO: change this
tags-ignore: ['**']
paths: [website/index/**, .github/workflows/deploy-website-index.yml]
concurrency:
group: ${{ github.ref }}-website-index
cancel-in-progress: true
jobs:
publish:
name: 🚀 Publish the site
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cloudflare/wrangler-action@v3
env: {PROJECT_NAME: random-user-agent-index, DIST_DIR: ./website/index}
with:
apiToken: ${{ secrets.CLOUDFLARE_PAGES_DEPLOY_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
environment: production
command: pages deploy ${{ env.DIST_DIR }} --project-name=${{ env.PROJECT_NAME }} --commit-dirty=true