Skip to content

Commit

Permalink
Merge pull request #113 from rhettre/feature/python3.12
Browse files Browse the repository at this point in the history
Update publish-and-release.yml
  • Loading branch information
rhettre authored Dec 29, 2024
2 parents 527ee11 + 91d6cd4 commit b84878f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/publish-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,23 @@ on:
release:
types: [created]
workflow_dispatch:
inputs:
job_to_run:
description: 'Job to run (deploy, build-lambda-layer, or both)'
required: true
default: 'both'
type: choice
options:
- both
- deploy
- build-lambda-layer

permissions:
contents: write

jobs:
deploy:
if: github.event.inputs.job_to_run == 'deploy' || github.event.inputs.job_to_run == 'both' || github.event_name == 'release'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -50,6 +61,14 @@ jobs:
build-lambda-layer:
needs: deploy
if: |
always() &&
(github.event.inputs.job_to_run == 'build-lambda-layer' ||
github.event.inputs.job_to_run == 'both' ||
github.event_name == 'release') &&
(needs.deploy.result == 'success' ||
needs.deploy.result == 'skipped' ||
github.event.inputs.job_to_run == 'build-lambda-layer')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit b84878f

Please sign in to comment.