0
0
mirror of https://github.com/yude-jp/yude.jp synced 2024-12-22 12:10:11 +09:00

Update cloudflare-workers.yml

This commit is contained in:
yude 2021-02-06 02:33:50 +09:00
parent d5674bd871
commit 3fc7afbd23

View File

@ -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: