From 3fc7afbd23cd89250fd8caf3ace182769beecfa4 Mon Sep 17 00:00:00 2001 From: yudete Date: Sat, 6 Feb 2021 02:33:50 +0900 Subject: [PATCH] Update cloudflare-workers.yml --- .github/workflows/cloudflare-workers.yml | 30 ++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.github/workflows/cloudflare-workers.yml b/.github/workflows/cloudflare-workers.yml index 12f927d..e59b4a2 100644 --- a/.github/workflows/cloudflare-workers.yml +++ b/.github/workflows/cloudflare-workers.yml @@ -6,6 +6,36 @@ on: - master jobs: + build-deploy: + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v2 + + - name: setup node + uses: actions/setup-node@v1 + with: + node-version: '12.x' + + - name: Cache dependencies + uses: actions/cache@v1 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: install + run: yarn install --frozen-lockfile + + - name: build + run: yarn build + + - name: export + run: yarn export + + - name: add nojekyll + run: touch ./out/.nojekyll + deploy-cf: runs-on: ubuntu-latest steps: