Skip to content

Commit

Permalink
ci: fixed more linting things, made deployment conditional on passing
Browse files Browse the repository at this point in the history
  • Loading branch information
nshe-dtaliaferro committed Dec 9, 2024
1 parent 7b1f835 commit 0ad67d4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
---
name: Continuous Delivery

# Trigger this workflow manually or by pushing commits to any branch.
# Trigger this workflow manually or after successful testing.
on:
push:
workflow_dispatch:
workflow_run:
branches:
- main
workflows:
- Continuous Integration
types:
- completed

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -14,9 +20,18 @@
deploy:
runs-on: ubuntu-latest
steps:
# Build the deployment package.
# Use the same hardware architecture and the same Python version
# as the Lambda function.
- uses: actions/checkout@v4
- run: zip lambda-function.zip *.py *.html
- uses: actions/setup-python@v5
with:
python-version: '3.12'

# Build the deployment package.
- run: |
pip install --no-compile --target build .
cd build
zip -r ../lambda-function.zip .
# Log into AWS.
- uses: aws-actions/configure-aws-credentials@v4
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@ jobs:

# Run the linters.
- uses: pre-commit/[email protected]

0 comments on commit 0ad67d4

Please sign in to comment.