docs: update permission section in PushNotifications
documentation
#1598
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
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
deployments: write | |
id-token: write | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.0.x' | |
cache: true | |
- name: Use Intro Blurb As Homepage | |
run: | | |
mv README.md README.md.bak | |
mv API_REF_INTRO_BLURB.md README.md | |
- name: Build Documentation | |
run: | | |
dart doc | |
ls -al doc/api | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-region: eu-west-2 | |
role-to-assume: arn:aws:iam::${{ secrets.ABLY_AWS_ACCOUNT_ID_SDK }}:role/ably-sdk-builds-ably-flutter | |
role-session-name: "${{ github.run_id }}-${{ github.run_number }}" | |
- name: Upload Documentation | |
uses: ably/sdk-upload-action@v1 | |
with: | |
sourcePath: doc/api | |
githubToken: ${{ secrets.GITHUB_TOKEN }} | |
artifactName: dartdoc | |
- name: Restore Readme | |
run: | | |
mv README.md API_REF_INTRO_BLURB.md | |
mv README.md.bak README.md |