Skip to content

Commit 85d8541

Browse files
authored
Deploy API lambda to staging during release (#1854)
1 parent 2990567 commit 85d8541

File tree

2 files changed

+14
-21
lines changed

2 files changed

+14
-21
lines changed

.github/workflows/deploy-api-lambda-staging.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,19 @@ jobs:
7575
uses: ./.github/workflows/build-link-index-updater-lambda.yml
7676
with:
7777
ref: ${{ needs.release-drafter.outputs.tag_name }}
78+
79+
deploy-api-lambda-staging:
80+
needs:
81+
- release-drafter
82+
uses: ./.github/workflows/deploy-api-lambda.yml
83+
permissions:
84+
id-token: write
85+
contents: read
86+
with:
87+
environment: staging
88+
ref: refs/tags/${{ needs.release-drafter.outputs.tag_name }}
7889

79-
release-lambda:
90+
deploy-link-index-updater-lambda-prod:
8091
environment:
8192
name: link-index-updater-prod
8293
runs-on: ubuntu-latest
@@ -163,8 +174,9 @@ jobs:
163174
publish-release:
164175
needs:
165176
- release
166-
- release-lambda
167177
- release-drafter
178+
- deploy-api-lambda-staging
179+
- deploy-link-index-updater-lambda-prod
168180
runs-on: ubuntu-latest
169181
permissions:
170182
contents: write

0 commit comments

Comments
 (0)