Skip to content

feat: Protect routes with github login #13

feat: Protect routes with github login

feat: Protect routes with github login #13

Workflow file for this run

name: Deploy to production
on:
workflow_dispatch:
push:
branches:
- main
paths:
- ".github/workflows/deploy.yml"
- "wrangler.toml"
jobs:
deploy:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- uses: pnpm/action-setup@v4
with:
version: 9
- name: Install worker-build
run: |
cargo install worker-build
- name: Deploy
uses: cloudflare/wrangler-action@v3
env:
AUTH_GITHUB_ID: ${{ secrets.AUTH_GITHUB_ID }}
AUTH_GITHUB_SECRET: ${{ secrets.AUTH_GITHUB_SECRET }}
AUTH_SECRET: ${{ secrets.AUTH_SECRET }}
AUTH_TRUST_HOST: ${{ secrets.AUTH_TRUST_HOST }}
ADMINS: ${{ secrets.ADMINS }}
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
workingDirectory: "${{ matrix.path }}"
wranglerVersion: "3.67.0"
secrets: |
ADMINS
AUTH_GITHUB_ID
AUTH_GITHUB_SECRET
AUTH_SECRET
AUTH_TRUST_HOST