Skip to content

Merge pull request #57 from ably/landingPagePath #58

Merge pull request #57 from ably/landingPagePath

Merge pull request #57 from ably/landingPagePath #58

Workflow file for this run

on:
pull_request:
push:
branches:
- main
jobs:
# Test that this action works with AWS credentials provided by the
# aws-actions/configure-aws-credentials action using GitHub OIDC.
#
# See https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect
test-oidc:
runs-on: ubuntu-latest
permissions:
deployments: write
id-token: write
steps:
- 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-sdk-upload-action
role-session-name: "${{ github.run_id }}-${{ github.run_number }}"
- uses: actions/checkout@v2
- name: Create test files for upload
run: |
mkdir -p test
echo "success!" > test/build-output.txt
- name: Test action invocation works
uses: ./
with:
sourcePath: test
githubToken: ${{ secrets.GITHUB_TOKEN }}
artifactName: test