Skip to content

Merge pull request #84 from anthonywritescode/pre-commit-ci-update-co… #78

Merge pull request #84 from anthonywritescode/pre-commit-ci-update-co…

Merge pull request #84 from anthonywritescode/pre-commit-ci-update-co… #78

Workflow file for this run

on:
pull_request:
push:
branches: [main, test-me-*]
permissions:
contents: read
id-token: write
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.x
- run: pip install cargo-lambda
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: cargo lambda build --release --output-format zip
- uses: aws-actions/[email protected]
with:
role-to-assume: 'arn:aws:iam::048899320783:role/awc_wideo_bot_deploy'
aws-region: us-east-1
if: github.event_name == 'push'
- run: |
aws lambda \
update-function-code --function-name awc_wideo_bot \
--zip fileb://target/lambda/awc-wideo-bot/bootstrap.zip
if: github.event_name == 'push'