Skip to content

iOS shine effect (#663) #199

iOS shine effect (#663)

iOS shine effect (#663) #199

name: Build and Deploy Analytics Documentation to GitHub Pages
on:
push:
branches:
- 'develop'
workflow_dispatch:
inputs:
force_build:
description: 'Force build and deploy'
required: false
default: false
type: boolean
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
files-changed:
name: Detect what files changed
uses: ./.github/workflows/detect_changed_files_reusable_workflow.yml
with:
base: ${{ github.ref }}
build:
needs: files-changed
if: ${{ inputs.force_build || needs.files-changed.outputs.analytic == 'true' }}
runs-on: ubuntu-22.04
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4.0.0
- name: Setup CI
uses: ./.github/actions/setup-android
- name: Setup Pages
uses: actions/configure-pages@v3.0.6
- name: Build Documentation
run: ./gradlew dokkaAnalytics
env:
GITHUB_USER: ${{ github.actor }}
GITHUB_PERSONAL_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Artifact
uses: actions/upload-pages-artifact@v2.0.0
with:
name: 'github-pages-analytics'
path: 'shared/build/dokka/analytics'
deploy:
needs: build
runs-on: ubuntu-22.04
timeout-minutes: 10
environment:
name: github_pages_analytics
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2.0.4
with:
artifact_name: 'github-pages-analytics'