Skip to content

[pull] master from Teahouse-Studios:master #382

[pull] master from Teahouse-Studios:master

[pull] master from Teahouse-Studios:master #382

name: Deploy Web Builder dynamic Content
on:
push:
paths:
- 'dynamic/**'
pull_request:
paths:
- 'dynamic/**'
workflow_dispatch:
jobs:
check-news:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- run: node check_news.js
- name: Create comment
uses: peter-evans/commit-comment@v1
if: ${{ failure() }}
with:
body: |
您的 `news.json` 或 `alerts.json` 格式出了些问题, 请及时修正
deploy:
environment: production
if: ${{ github.ref_name == 'master' && !failure() }}
needs:
- check-news
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: Teahouse-Studios/[email protected]
with:
KEY_ID: ${{ secrets.KEY_ID }}
KEY_SECRET: ${{ secrets.KEY_SECRET }}
BUCKET: frontend-wdljt
LOCAL_PATH: ./dynamic/
REMOTE_PREFIX: meme/dynamic/