chore(deps-dev): bump json5 from 1.0.1 to 1.0.2 #84
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build on push | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Use Node.js 12 | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 12 | |
- name: Build project | |
working-directory: ./ | |
run: | | |
npm install | |
npm run build | |
- name: Upload js project | |
uses: actions/upload-artifact@v1 | |
with: | |
name: js-dist | |
path: dist/main/ | |
- name: clone Auto.js | |
working-directory: ./dist | |
run: | | |
git clone https://github.com/demoshang/Auto.js.git | |
ls -la ./ | |
- name: Auto.js replace inrt | |
working-directory: ./dist | |
run: | | |
npx @s4p/autojs-replace-inrt "./Auto.js" "./main" | |
cd "./Auto.js" | |
git status | |
- name: Set up JDK 1.8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
- name: Build with Gradle | |
working-directory: ./dist/Auto.js | |
run: chmod 777 ./gradlew && ./gradlew :inrt:assembleDebug && find inrt/build/outputs | |
- name: Upload apk | |
uses: actions/upload-artifact@v1 | |
with: | |
name: debug-apk | |
path: dist/Auto.js/inrt/build/outputs/apk/debug/ |