Skip to content

Commit

Permalink
fix github actioin
Browse files Browse the repository at this point in the history
  • Loading branch information
yingziwu committed Mar 10, 2023
1 parent 548d185 commit 7a0aef9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 36 deletions.
20 changes: 3 additions & 17 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,8 @@ jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Node 🛎️
uses: actions/setup-node@v3
with:
node-version: "19"
check-latest: true

- name: Check Version 🛎️
run: node --version && npm --version && yarn --version

- name: Install 🔧
run: yarn install
- name: Init 🛎️
uses: 404-novel-project/novel-downloader-action@v1

- name: Build 🔧
run: yarn run github
Expand All @@ -47,7 +33,7 @@ jobs:
path: dist/bundle*.js

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4
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
Expand Down
24 changes: 5 additions & 19 deletions .github/workflows/tester.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,12 @@ on:
workflow_dispatch:

jobs:
install:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3

- name: Setup Node 🛎️
uses: actions/setup-node@v3
with:
node-version: "19"
check-latest: true

- name: Check Version 🛎️
run: node --version && npm --version && yarn --version

- name: Install 🔧
run: yarn install

sites:
needs: install
runs-on: ubuntu-latest
steps:
- run: yarn run ts-node --esm tester/sites.ts
- name: Init 🛎️
uses: 404-novel-project/novel-downloader-action@v1

- name: Run 🔧
run: yarn run ts-node --esm tester/sites.ts

0 comments on commit 7a0aef9

Please sign in to comment.