Skip to content

Bump cross-spawn from 6.0.5 to 6.0.6 #270

Bump cross-spawn from 6.0.5 to 6.0.6

Bump cross-spawn from 6.0.5 to 6.0.6 #270

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
#pull-requests: 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 🚀
id: upload-artifacts
uses: actions/upload-artifact@v4
with:
name: bundle
path: dist/bundle*.js
# - name: comment PR 📝
# uses: thollander/actions-comment-pull-request@v3
# if: ${{github.event_name == 'pull_request'}}
# with:
# message: |
# 我们已经收到您的PR,您可以在这里访问对应的脚本文件。
# ${{ steps.upload-artifacts.outputs.artifact-url }}
- 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