From 5c20fa362420f95b3b8a75de9755c41649a79516 Mon Sep 17 00:00:00 2001 From: Keavon Chambers Date: Fri, 9 Apr 2021 22:26:16 -0700 Subject: [PATCH] Add deployment to Cloudflare Workers --- .github/workflows/cd.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/cd.yml diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml new file mode 100644 index 00000000..96297891 --- /dev/null +++ b/.github/workflows/cd.yml @@ -0,0 +1,28 @@ +name: Graphite Continuous Deployment + +on: + push: + branches: [ master ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Setup Node + uses: actions/setup-node@v1 + with: + node-version: '14.x' + - name: Install Dependencies + run: cd client/web && npm install + - name: build node + run: cd client/web && npm run build + - name: Deploy to Cloudflare Workers + uses: cloudflare/wrangler-action@1.2.0 + with: + apiToken: ${{ secrets.CF_API_TOKEN }}