Skip to content

Abide by new explicit api rules #97

Abide by new explicit api rules

Abide by new explicit api rules #97

Workflow file for this run

name: Post merge workflow
on:
push:
branches: [ main ]
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-20.04
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: '0'
- name: Check out java
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: 17
- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Run checks
run: ./gradlew check
- name: Build apks
run: ./gradlew :toggles-app:packageDebug :toggles-sample:packageDebug
- name: Upload apks
uses: actions/upload-artifact@v3
with:
name: Apks
path: '**/build/outputs/apk/*'
retention-days: 14
- name: Setup environment
if: github.repository == 'erikeelde/toggles'
run: |
echo "signing.keyId=${{secrets.SIGNING_KEYID}}" >> gradle.properties
echo "signing.password=${{secrets.SIGNING_PASSWORD}}" >> gradle.properties
echo "signing.secretKeyRingFile=secring.gpg" >> gradle.properties
echo "mavenCentralRepositoryUsername=${{secrets.MAVEN_CENTRAL_REPOSITORY_USERNAME}}" >> gradle.properties
echo "mavenCentralRepositoryPassword=${{secrets.MAVEN_CENTRAL_REPOSITORY_PASSWORD}}" >> gradle.properties
echo "${{secrets.SECRING_GPG_B64}}" > secring.gpg.b64
base64 -d secring.gpg.b64 > secring.gpg
- name: Publish core library
if: github.repository == 'erikeelde/toggles'
run: ./gradlew :toggles-prefs:publish --no-daemon --no-parallel
- name: Publish prefs library
if: github.repository == 'erikeelde/toggles'
run: ./gradlew :toggles-prefs:publish --no-daemon --no-parallel
- name: Publish flow library
if: github.repository == 'erikeelde/toggles'
run: ./gradlew :toggles-flow:publish --no-daemon --no-parallel
- name: Publish prefs noop library
if: github.repository == 'erikeelde/toggles'
run: ./gradlew :toggles-prefs-noop:publish --no-daemon --no-parallel
- name: Publish flow noop library
if: github.repository == 'erikeelde/toggles'
run: ./gradlew :toggles-flow-noop:publish --no-daemon --no-parallel