修复CP作话可能为null而导致的问题 #158
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Deploy | |
on: | |
push: | |
paths-ignore: | |
- README.md | |
- license.txt | |
- third-party-license.txt | |
- test/* | |
- tools/* | |
branches-ignore: | |
- gh-pages | |
- "dependabot/**" | |
pull_request: | |
paths-ignore: | |
- README.md | |
- license.txt | |
branches-ignore: | |
- gh-pages | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Init 🛎️ | |
uses: 404-novel-project/novel-downloader-action@v1 | |
- name: Build 🔧 | |
run: yarn run github | |
- name: Upload Artifact 🚀 | |
uses: actions/upload-artifact@v3 | |
with: | |
name: bundle | |
path: dist/bundle*.js | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
if: ${{ github.ref == 'refs/heads/master' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') }} | |
with: | |
branch: gh-pages | |
folder: dist |