Skip to content

ci: GHA workflow security cleanup #340

ci: GHA workflow security cleanup

ci: GHA workflow security cleanup #340

Workflow file for this run

on:
pull_request:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
permissions:
deployments: write
id-token: write
steps:
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
with:
persist-credentials: false
- uses: ruby/setup-ruby@afeafc3d1ab54a631816aba4c914a0081c12ff2f # v1.310.0
with:
ruby-version: '2.7'
bundler-cache: true
- name: Build Documentation
run: |
bundle exec yard --readme INTRO.md --tag "spec:Specification"
ls -al doc/
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@67fbcbb121271f7775d2e7715933280b06314838 # v1
with:
aws-region: eu-west-2
role-to-assume: arn:aws:iam::${{ secrets.ABLY_AWS_ACCOUNT_ID_SDK }}:role/ably-sdk-builds-ably-ruby
role-session-name: "${{ github.run_id }}-${{ github.run_number }}"
- name: Upload Documentation
uses: ably/sdk-upload-action@8c6179796fc7ee8fc9bb28d5223ffef005b985cc # v1
with:
sourcePath: doc/
githubToken: ${{ secrets.GITHUB_TOKEN }}
artifactName: docs