fix(lambda): bump the aws group in /lambdas with 5 updates (#3620) #1769
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release build | |
on: | |
push: | |
branches: | |
- main | |
- v1 | |
workflow_dispatch: | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
actions: write | |
steps: | |
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 | |
with: | |
node-version: 18 | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # ratchet:actions/checkout@v4 | |
- name: Build dist | |
working-directory: lambdas | |
run: yarn install && yarn run test && yarn dist | |
- name: Get installation token | |
uses: philips-software/app-token-action@a37926571e4cec6f219e06727136efdd073d8657 # ratchet:philips-software/app-token-action@v1.1.2 | |
id: token | |
with: | |
app_id: ${{ secrets.FOREST_RELEASER_APP_ID }} | |
app_base64_private_key: ${{ secrets.FOREST_RELEASER_APP_PRIVATE_KEY_BASE64 }} | |
auth_type: installation | |
- name: Extract branch name | |
id: branch | |
shell: bash | |
run: echo "name=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT | |
- name: Release | |
id: release | |
uses: google-github-actions/release-please-action@db8f2c60ee802b3748b512940dde88eabd7b7e01 # ratchet:google-github-actions/release-please-action@v3 | |
with: | |
default-branch: ${{ steps.branch.outputs.name }} | |
release-type: terraform-module | |
token: ${{ steps.token.outputs.token }} | |
- name: Upload Release Asset | |
if: ${{ steps.release.outputs.releases_created }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
for f in $(find . -name '*.zip'); do | |
gh release upload ${{ steps.release.outputs.tag_name }} $f | |
done |