[staff] Fix disable 2FA (#4032) #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Deploy (staff)" | |
on: | |
# Run on every push to main that changes infra/staff/ | |
push: | |
branches: [main] | |
paths: | |
- "infra/staff/**" | |
- ".github/workflows/infra-deploy-staff.yml" | |
# Also allow manually running the workflow | |
workflow_dispatch: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: infra/staff | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup node and enable yarn caching | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "yarn" | |
cache-dependency-path: "infra/staff/yarn.lock" | |
- name: Install dependencies | |
run: yarn install | |
- name: Build | |
run: yarn build | |
- name: Publish | |
uses: cloudflare/wrangler-action@v3 | |
with: | |
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
command: pages deploy --project-name=ente --commit-dirty=true --branch=deploy/staff infra/staff/dist |