mirror of
https://github.com/yude-jp/yude.jp
synced 2024-12-22 20:20:09 +09:00
Fix GitHub Actions
This commit is contained in:
parent
f5da6d1721
commit
8c300fbe43
26
.github/workflows/cloudflare-workers.yml
vendored
26
.github/workflows/cloudflare-workers.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: Build and Deploy
|
name: Cloudflare Workers
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -6,7 +6,8 @@ on:
|
|||||||
- master
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build-and-deploy:
|
||||||
|
name: Build and Deploy
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@ -35,16 +36,13 @@ jobs:
|
|||||||
|
|
||||||
- name: add nojekyll
|
- name: add nojekyll
|
||||||
run: touch ./out/.nojekyll
|
run: touch ./out/.nojekyll
|
||||||
|
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
deploy:
|
- name: Publish
|
||||||
runs-on: ubuntu-latest
|
uses: cloudflare/wrangler-action@1.3.0
|
||||||
needs: build
|
env:
|
||||||
steps:
|
USER: root
|
||||||
- uses: actions/checkout@v2
|
with:
|
||||||
- name: Publish
|
apiToken: ${{ secrets.CF_API_TOKEN }}
|
||||||
uses: cloudflare/wrangler-action@1.3.0
|
workingDirectory: './out'
|
||||||
env:
|
|
||||||
USER: root
|
|
||||||
with:
|
|
||||||
apiToken: ${{ secrets.CF_API_TOKEN }}
|
|
||||||
workingDirectory: './out'
|
|
||||||
|
Loading…
Reference in New Issue
Block a user