FEAT: Projects section #37
Workflow file for this run
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: Run checks and deploy | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
Run-Checks: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone the repo | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.9.0 | |
cache: "npm" | |
- name: Install dependencies | |
run: npm ci | |
- name: Build artifacts | |
run: npm run build:ci | |
- name: Deploy application | |
uses: cloudflare/wrangler-action@v3 | |
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
with: | |
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
command: pages deploy .vercel/output/static --project-name=thebatproject | |
gitHubToken: ${{ secrets.GITHUB_TOKEN }} | |
branch: master |