Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An attempt to migrate to Github Actions. #23

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Android CI

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:


jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'zulu'
cache: gradle

- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build && ./gradlew shadowJar

- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: App-Artifact
path: |
build/libs/*.jar
# ${{steps.sign_app.outputs.signedReleaseFile}}
- name: Upload to Release
uses: xresloader/upload-to-github-release@v1
with:
file: |
build/libs/*.jar
# ${{steps.sign_app.outputs.signedReleaseFile}}
name: ${{ github.pull_request_target }} ${{ github.GITHUB_BASE_REF }} ${{ github.run_id }}
tag_name: ${{ github.run_id }} ${{ github.pull_request_target }}
draft: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}