mirror of
https://github.com/earthjasonlin/zzz-signal-search-export.git
synced 2024-09-20 17:00:11 +08:00
32 lines
629 B
YAML
32 lines
629 B
YAML
|
name: Build Update
|
||
|
|
||
|
on:
|
||
|
workflow_dispatch:
|
||
|
push:
|
||
|
branches: [ main ]
|
||
|
|
||
|
jobs:
|
||
|
main:
|
||
|
runs-on: windows-latest
|
||
|
|
||
|
steps:
|
||
|
- name: Checkout
|
||
|
uses: actions/checkout@v2
|
||
|
- name: Use Node.js
|
||
|
uses: actions/setup-node@v1
|
||
|
with:
|
||
|
node-version: '16.x'
|
||
|
- name: Build Update
|
||
|
run: |
|
||
|
yarn --frozen-lockfile
|
||
|
yarn build:dir
|
||
|
yarn build-update
|
||
|
- name: Deploy
|
||
|
if: success()
|
||
|
uses: crazy-max/ghaction-github-pages@v2
|
||
|
with:
|
||
|
commit_message: Update app
|
||
|
build_dir: ./build/update
|
||
|
env:
|
||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|