Skip to content

test in 2024年 6月14日 星期五 15时44分34秒 CST #11

test in 2024年 6月14日 星期五 15时44分34秒 CST

test in 2024年 6月14日 星期五 15时44分34秒 CST #11

Workflow file for this run

name: Code Push
on:
- push
- pull_request
jobs:
main:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: npm ci
- name: TS Type Check
run: npm run lint:type-check
- name: Cache
uses: actions/cache@v4
with:
path: dist/monkey
key: monkey
- name: check
run: |
ls -alh dist/* || true
- name: Get changed files and write the outputs to a JSON file
id: changed-files-write-output-files-json
uses: tj-actions/changed-files@v44
with:
json: true
write_output_files: true
files: |
src/monkey/**
- name: Verify the contents of the .github/outputs/added_files.json file
run: |
cat .github/outputs/added_files.json
- name: Build Qinglong
run: npm run build
- name: Deploy Qinglong scripts
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist/qinglong
branch: qinglong
if: github.ref_name == github.event.repository.default_branch
- name: Deploy Monkey scripts
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist/monkey
branch: monkey
if: github.ref_name == github.event.repository.default_branch