99 install-and-test :
1010 runs-on : ubuntu-latest
1111 steps :
12- - uses : actions/checkout@v2
13- - name : Install dependencies
12+ -
13+ uses : actions/checkout@v2
14+ -
15+ name : Install dependencies
1416 run : |
1517 yarn
18+ yarn lint
1619 build-android :
1720 needs : install-and-test
1821 runs-on : ubuntu-latest
1922 steps :
20- - uses : actions/checkout@v2
21-
22- - name : Use Node.js
23+ -
24+ uses : actions/checkout@v2
25+ -
26+ name : Use Node.js
2327 uses : actions/setup-node@v2
2428 with :
2529 node-version : " 16.16.0"
26-
27- - name : Get yarn cache directory path
30+ -
31+ name : Get yarn cache directory path
2832 id : yarn-cache-dir-path
2933 run : echo "::set-output name=dir::$(yarn cache dir)"
30-
3134 - uses : actions/cache@v1
3235 id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
3336 with :
3437 path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
3538 key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
3639 restore-keys : |
3740 ${{ runner.os }}-yarn-
38-
39- - name : Install dependencies
41+ -
42+ name : Install dependencies
4043 run : |
4144 yarn
42-
43- - name : Build Android Release
45+ -
46+ name : Build Android Release
4447 run : |
4548 cd android && ./gradlew assembleRelease
46-
47- - name : Get the version
49+ -
50+ name : Get the version
4851 id : get_version
4952 run : echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)
50-
51- - name : Rename Apk Name
53+ -
54+ name : Rename Apk Name
5255 run : cp android/app/build/outputs/apk/release/app-release.apk android/app/build/outputs/apk/release/v2hub-${{ steps.get_version.outputs.VERSION }}.apk
53-
54- - name : build changelog
56+ -
57+ name : build changelog
5558 id : build_changelog
5659 if : startsWith(github.ref, 'refs/tags/')
57606063 with :
6164 configuration : " .config/changelog_configuration.json"
6265 ignorePreReleases : " false"
63-
64- - name : Create Release
66+ -
67+ name : Create Release
6568 uses : softprops/action-gh-release@v1
6669 if : startsWith(github.ref, 'refs/tags/')
6770 with :
@@ -71,21 +74,18 @@ jobs:
7174 env :
7275 GITHUB_TOKEN : ${{ secrets.github_token }}
7376
74- # - name: Upload Artifact
75- # uses: actions/upload-artifact@v1
76- # with:
77- # name: app-release.apk
78- # path: android/app/build/outputs/apk/release/
79-
80-
81- jishida-push :
77+ push :
8278 runs-on : ubuntu-latest
8379 needs : [build-android]
8480 if : startsWith(github.ref, 'refs/tags/')
8581 steps :
86- - name : JiShiDa Push
87- uses : funnyzak/jishida-action@master
82+ -
83+ name : V2Hub Release Push
84+ uses : funnyzak/pushoo-action@main
8885 with :
89- key : ${{secrets.JPUSH_KEY}}
90- head : ${{github.repository}}已完成打包发布
91- body : 来自GithubAction:${{github.repository}} 发布已完成,下载地址:https://github.com/funnyzak/react-native-v2ex/releases。
86+ platforms : ifttt, bark
87+ tokens : ${{ secrets.PUSH_KEY }}
88+ content : |
89+ # ${{github.repository}} Released
90+ options : ' {"bark": { "url": "https://github.com/funnyzak" }}'
91+ debug : false
0 commit comments