* Only test when pushing on master OR when there's a PR * Added the bintray badge as well as the repository informations to README. * Do not re-launch CI when updating documentation, auto-publish when pushing a snapshot. * Update README.md Co-authored-by: Salomon BRYS <salomon@kodein.net>
78 lines
2.4 KiB
YAML
78 lines
2.4 KiB
YAML
name: Publish snapshot
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'snapshot/*'
|
|
paths-ignore:
|
|
- '**.md'
|
|
- '**.adoc'
|
|
- '**/.gitignore'
|
|
- './github/**'
|
|
- '!./github/workflow/snapshot.yml'
|
|
|
|
jobs:
|
|
|
|
publish-ios:
|
|
name: Publish iOS native
|
|
runs-on: macOS-latest
|
|
steps:
|
|
- name: Check out
|
|
uses: actions/checkout@v2
|
|
with:
|
|
submodules: 'true'
|
|
- name: Cached Konan
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: ~/.konan
|
|
key: ${{ runner.os }}-konan-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
|
|
restore-keys: ${{ runner.os }}-konan-
|
|
- name: Install automake
|
|
run: brew install automake
|
|
- name: Set up JDK 11
|
|
uses: actions/setup-java@v1
|
|
with:
|
|
java-version: 11
|
|
- name: Check
|
|
uses: eskatos/gradle-command-action@v1
|
|
with:
|
|
wrapper-cache-enabled: true
|
|
arguments: iosX64Test
|
|
- name: Publish
|
|
uses: eskatos/gradle-command-action@v1
|
|
env:
|
|
BINTRAY_USER: ${{ secrets.bintray_user }}
|
|
BINTRAY_APIKEY: ${{ secrets.bintray_apikey }}
|
|
with:
|
|
arguments: publishIosArm64PublicationToBintrayRepository publishIosX64PublicationToBintrayRepository -PsnapshotNumber=${{ github.run_number }} -PgitRef=${{ github.ref }} -PgitSha=${{ github.sha }}
|
|
|
|
publish:
|
|
name: Publish JVM & Linux native
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out
|
|
uses: actions/checkout@v2
|
|
with:
|
|
submodules: 'true'
|
|
- name: Cached Konan
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: ~/.konan
|
|
key: ${{ runner.os }}-konan-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
|
|
restore-keys: ${{ runner.os }}-konan-
|
|
- name: Set up JDK 11
|
|
uses: actions/setup-java@v1
|
|
with:
|
|
java-version: 11
|
|
- name: Check
|
|
uses: eskatos/gradle-command-action@v1
|
|
with:
|
|
wrapper-cache-enabled: true
|
|
arguments: check
|
|
- name: Publish
|
|
uses: eskatos/gradle-command-action@v1
|
|
env:
|
|
BINTRAY_USER: ${{ secrets.bintray_user }}
|
|
BINTRAY_APIKEY: ${{ secrets.bintray_apikey }}
|
|
with:
|
|
arguments: publishAllPublicationsToBintrayRepository -PsnapshotNumber=${{ github.run_number }} -PgitRef=${{ github.ref }} -PgitSha=${{ github.sha }} |