Skip to content

Update aws-actions/configure-aws-credentials action to v3 (#164) #133

Update aws-actions/configure-aws-credentials action to v3 (#164)

Update aws-actions/configure-aws-credentials action to v3 (#164) #133

Workflow file for this run

name: deploy-probot
on:
workflow_dispatch:
push:
branches: main
paths:
- "src/**"
- "package*.json"
- "serverless.yaml"
- ".github/workflows/deploy.yaml"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
id-token: write
contents: read
jobs:
deploy:
name: Deploy Probot Application
runs-on: ubuntu-latest
container: node:18
steps:
- name: Get AWS credentials
uses: aws-actions/configure-aws-credentials@v3
with:
role-to-assume: ${{ vars.SERVERLESS_AWS_ROLE_ARN }}
aws-region: ${{ vars.AWS_REGION }}
- name: Checkout code
uses: actions/checkout@v3
- name: Install npm dependencies
run: npm ci
- name: Install serverless framework
run: npm install -g serverless
- name: Test Probot
run: npm run test
- name: Build Probot
run: npm run build
- name: Copy release draft template
run: cp src/plugins/ReleaseDrafter/draft_template.njk dist/plugins/ReleaseDrafter
- name: Deploy Probot
run: npm run deploy
env:
APP_ID: ${{ secrets.APP_ID }}
WEBHOOK_SECRET: ${{ secrets.WEBHOOK_SECRET }}
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}