From 8c300fbe4390a7115692f274d52432d89f923405 Mon Sep 17 00:00:00 2001 From: yudete Date: Sat, 6 Feb 2021 02:54:09 +0900 Subject: [PATCH] Fix GitHub Actions --- .github/workflows/cloudflare-workers.yml | 26 +++++++++++------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/.github/workflows/cloudflare-workers.yml b/.github/workflows/cloudflare-workers.yml index dfcb550..56a1d4f 100644 --- a/.github/workflows/cloudflare-workers.yml +++ b/.github/workflows/cloudflare-workers.yml @@ -1,4 +1,4 @@ -name: Build and Deploy +name: Cloudflare Workers on: push: @@ -6,7 +6,8 @@ on: - master jobs: - build: + build-and-deploy: + name: Build and Deploy runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 @@ -35,16 +36,13 @@ jobs: - name: add nojekyll run: touch ./out/.nojekyll + + - uses: actions/checkout@v2 - deploy: - runs-on: ubuntu-latest - needs: build - steps: - - uses: actions/checkout@v2 - - name: Publish - uses: cloudflare/wrangler-action@1.3.0 - env: - USER: root - with: - apiToken: ${{ secrets.CF_API_TOKEN }} - workingDirectory: './out' \ No newline at end of file + - name: Publish + uses: cloudflare/wrangler-action@1.3.0 + env: + USER: root + with: + apiToken: ${{ secrets.CF_API_TOKEN }} + workingDirectory: './out'