diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml new file mode 100644 index 000000000..2dc27d296 --- /dev/null +++ b/.github/workflows/android.yml @@ -0,0 +1,35 @@ +name: EhViewer + +on: + push: + branches: + - master + +jobs: + linux: + name: Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - uses: actions/cache@v1 + with: + path: ~/.gradle/caches + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} + restore-keys: | + ${{ runner.os }}-gradle- + - name: Build + env: + KEYSTORE_PASS: ${{ secrets.KEYSTORE_PASS }} + ALIAS_NAME: ${{ secrets.ALIAS_NAME }} + ALIAS_PASS: ${{ secrets.ALIAS_PASS }} + run: | + ./gradlew assembleRelease + - uses: actions/upload-artifact@master + name: Upload artifact + with: + name: EhViewer + path: app/build/outputs/ diff --git a/app/.gitignore b/app/.gitignore index c9d6c9a6d..495de1072 100644 --- a/app/.gitignore +++ b/app/.gitignore @@ -3,6 +3,5 @@ manifest-merger-release-report.txt /src/main/libs /src/main/obj -*.jks # Intellij *.iml \ No newline at end of file diff --git a/app/hitokoto.jks b/app/hitokoto.jks new file mode 100644 index 000000000..f5028dcae Binary files /dev/null and b/app/hitokoto.jks differ