fix: prevent full crash when returning from a force-quit state #110
Workflow file for this run
This file contains 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: Deploy docs PR preview | |
on: | |
pull_request: | |
paths: | |
- 'IonicPortals/src/main/**' | |
permissions: | |
contents: read | |
deployments: write | |
id-token: write | |
env: | |
SLUG: portals-android-api-ref-${{ github.event.number }}-${{ github.run_id }} | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
environment: | |
name: preview-${{ github.event.number }} | |
url: https://${{ env.SLUG }}.ionicpreview.com | |
steps: | |
- uses: actions/checkout@v2 | |
- name: create local.properties file for app creds | |
env: | |
PORTALS_KEY: ${{ secrets.portals_key }} | |
run: echo portals_key=\"$PORTALS_KEY\" > ./local.properties | |
- name: set up JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
- name: Grant execute permission for gradlew | |
run: chmod +x ./gradlew | |
- name: Generate Docs | |
run: ./gradlew dokkaHtml | |
- uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
role-to-assume: arn:aws:iam::319312831725:role/github-docs | |
aws-region: us-east-1 | |
- name: Deploy | |
run: | | |
aws s3 sync IonicPortals/build/dokka/html/ s3://ionic-docs/preview/${{ env.SLUG }}/ --exclude '*.html' --cache-control max-age=31536000 --only-show-errors | |
aws s3 sync IonicPortals/build/dokka/html/ s3://ionic-docs/preview/${{ env.SLUG }}/ --exclude '*' --include '*.html' --cache-control max-age=60 --only-show-errors |