Skip to content

Commit

Permalink
Update CI with OID
Browse files Browse the repository at this point in the history
  • Loading branch information
ptoffy committed Jun 18, 2024
1 parent dce93aa commit f646209
Showing 1 changed file with 22 additions and 14 deletions.
36 changes: 22 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Pull Request Testing
name: PR
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand All @@ -8,26 +8,34 @@ on:
- main

jobs:
build:
name: Test, Build, and Deploy
deploy:
name: Build and Deploy
permissions: { id-token: write, contents: read }
runs-on: ubuntu-latest
steps:
- uses: aws-actions/configure-aws-credentials@v4
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
if: ${{ github.event.pull_request.head.repo.full_name == 'vapor/design' && github.actor != 'dependabot[bot]' }}
with:
aws-access-key-id: ${{ secrets.DESIGN_DEPLOYER_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.DESIGN_DEPLOYER_AWS_SECRET_ACCESS_KEY }}
aws-region: 'us-east-1'
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
role-to-assume: ${{ vars.OIDC_ROLE_ARN }}
aws-region: ${{ vars.OIDC_ROLE_REGION }}
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
- uses: ScottBrenner/cfn-lint-action@v2
- run: swift run
- run: npm install
- run: cfn-lint -t stack.yml
- run: npm run build
- name: Set up CloudFormation Lint
uses: ScottBrenner/cfn-lint-action@v2
- name: Run CloudFormation Lint
run: cfn-lint -t stack.yml
- name: Build Publish website
run: swift run
- name: Install dependencies
run: npm install
- name: Build Node website
run: npm run build
- name: Create S3 Bucket
if: ${{ github.event.pull_request.head.repo.full_name == 'vapor/design' && github.actor != 'dependabot[bot]' }}
env:
Expand Down

0 comments on commit f646209

Please sign in to comment.