mirror of
https://github.com/tachiyomiorg/tachiyomi-extensions-inspector.git
synced 2025-02-12 23:08:56 +01:00
50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
name: CI Publish
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
name: Build artifacts and create draft release
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout ${{ github.ref }}
|
|
uses: actions/checkout@v3
|
|
with:
|
|
ref: ${{ github.ref }}
|
|
|
|
- name: Validate Gradle Wrapper
|
|
uses: gradle/wrapper-validation-action@v1
|
|
|
|
- name: Set up JDK
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
java-version: 11
|
|
distribution: adopt
|
|
|
|
- name: Generate android.jar
|
|
run: |
|
|
./AndroidCompat/getAndroid.sh
|
|
|
|
- name: Build project
|
|
uses: gradle/gradle-command-action@v2
|
|
with:
|
|
arguments: :server:shadowJar
|
|
|
|
- name: Upload Release
|
|
uses: xresloader/upload-to-github-release@v1
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
file: "server/build/*.jar"
|
|
tags: true
|
|
draft: true
|
|
verbose: true
|