Introduce dedicated Facebook auth modules (kmpauth-firebase-facebook and kmpauth-facebook)
#113
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| tags: | |
| - 'v*' | |
| paths-ignore: | |
| - '**/README.md' | |
| pull_request: | |
| branches: [ "main" ] | |
| concurrency: | |
| group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' | |
| cancel-in-progress: true | |
| # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
| permissions: | |
| contents: write | |
| pages: write | |
| id-token: write | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup JDK 17 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Setup gradle | |
| uses: gradle/gradle-build-action@ac2d340dc04d9e1113182899e983b5400c17cda1 | |
| - name: Check api | |
| run: ./gradlew apiCheck | |
| build: | |
| strategy: | |
| matrix: | |
| config: [ | |
| { target: android, os: ubuntu-latest, tasks: testDebugUnitTest testReleaseUnitTest, continueOnError: false }, | |
| { target: apple, os: macos-latest, tasks: iosSimulatorArm64Test, continueOnError: false }, | |
| ] | |
| runs-on: ${{ matrix.config.os }} | |
| name: Build ${{ matrix.config.target }} | |
| needs: check | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup JDK 17 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Setup gradle | |
| uses: gradle/gradle-build-action@ac2d340dc04d9e1113182899e983b5400c17cda1 | |
| - name: Setup Xcode | |
| if: ${{ startsWith(matrix.config.os, 'macos') }} | |
| uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: latest-stable | |
| - name: Test ${{ matrix.config.target }} targets | |
| continue-on-error: ${{ matrix.config.continueOnError }} | |
| run: ./gradlew ${{ matrix.config.tasks }} | |
| release: | |
| if: startsWith(github.ref, 'refs/tags/') | |
| runs-on: macos-latest | |
| needs: | |
| - build | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Setup gradle | |
| uses: gradle/gradle-build-action@ac2d340dc04d9e1113182899e983b5400c17cda1 | |
| - name: Setup Xcode | |
| uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: latest-stable | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v5 | |
| - name: Generate docs with dokka | |
| run: ./gradlew dokkaHtmlMultiModule | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: ${{ github.workspace }}/build/dokka/htmlMultiModule | |
| - name: Release to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 | |
| - name: Install GPG | |
| env: | |
| SIGNING_KEY: ${{ secrets.SIGNING_KEY }} | |
| run: | | |
| brew install gpg | |
| echo "$SIGNING_KEY" | gpg --dearmor > ${HOME}/secret_key.gpg | |
| - name: Add Gradle Properties | |
| env: | |
| MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }} | |
| MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} | |
| SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }} | |
| SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }} | |
| run: | | |
| echo "mavenCentralUsername=${MAVEN_CENTRAL_USERNAME}" >> gradle.properties | |
| echo "mavenCentralPassword=${MAVEN_CENTRAL_PASSWORD}" >> gradle.properties | |
| echo "signing.keyId=${SIGNING_KEY_ID}" >> gradle.properties | |
| echo "signing.password=${SIGNING_KEY_PASSWORD}" >> gradle.properties | |
| echo "signing.secretKeyRingFile=${HOME}/secret_key.gpg" >> gradle.properties | |
| - name: Publish to MavenCentral | |
| run: | | |
| ./gradlew publishAndReleaseToMavenCentral --no-configuration-cache | |
| - name: Create new release from tag | |
| env: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| generate_release_notes: true | |
| token: ${{ env.github_token }} | |