aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/deploy.yml
blob: bcf9bd363b029010a6d103bf9c9bace2782c79a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: 🛫 Deploy to Cloudflare Workers

on:
  push:
    branches:
      - main
  repository_dispatch:

jobs:
  build-and-deploy:
    runs-on: ubuntu-latest
    name: 🛠 Build & Deploy
    steps:
      - uses: actions/checkout@v2
      - name: 🍏 Use Node.js
        uses: actions/setup-node@v1
        with:
          node-version: "12.x"

      - run: npm install
      - name: 📨 Publish
        uses: cloudflare/[email protected]
        with:
          apiToken: ${{ secrets.CF_API_TOKEN }}
        env:
          CF_ACCOUNT_ID: ${{secrets.CF_ACCOUNT_ID}}