Skip to content

Commit 954c986

Browse files
author
ziye12
authored
Create npm-publish.yml
1 parent 7d6e1d1 commit 954c986

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/npm-publish.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3+
4+
5+
name: ttwkziye
6+
7+
on:
8+
workflow_dispatch:
9+
schedule:
10+
- cron: '5 18 * * *'
11+
watch:
12+
types: started
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
if: github.event.repository.owner.id == github.event.sender.id
17+
env:
18+
ZFBWK_HEADER: ${{ secrets.ZFBWK_HEADER }}
19+
ZFBWK_BODY: ${{ secrets.ZFBWK_BODY }}
20+
steps:
21+
- uses: actions/checkout@v1
22+
- name: Use Node.js 14.x
23+
uses: actions/setup-node@v1
24+
with:
25+
node-version: 14.x
26+
- name: npm install
27+
if: env.ZFBWK_HEADER
28+
run: |
29+
npm install
30+
- name: '运行 【支付宝挖矿】'
31+
if: env.ZFBWK_HEADER
32+
run: |
33+
node Task/ttwkziye.js
34+
env:
35+
PUSH_KEY: ${{ secrets.PUSH_KEY }}
36+
BARK_PUSH: ${{ secrets.BARK_PUSH }}
37+
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }}
38+
TG_USER_ID: ${{ secrets.TG_USER_ID }}
39+
BARK_SOUND: ${{ secrets.BARK_SOUND }}
40+
DD_BOT_TOKEN: ${{ secrets.DD_BOT_TOKEN }}
41+
DD_BOT_SECRET: ${{ secrets.DD_BOT_SECRET }}
42+
43+

0 commit comments

Comments
 (0)