Skip to content

Commit

Permalink
[MS-670] ci: Add build action
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrgrundas committed Oct 21, 2024
1 parent b2bdb82 commit 5034174
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build

on:
push:
tags:
- "*"

jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
env:
AWS_DEFAULT_REGION: eu-central-1
steps:
- uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9.10.0
run_install: false

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: Install dependencies
run: pnpm --version && pnpm install --frozen-lockfile

- name: Build zip
run: bash etc/command/build.sh

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@master
with:
role-to-assume: arn:aws:iam::414357773561:role/github-actions/mirumee_nimara-mailer
aws-region: eu-central-1

- name: Copy ZIP
run: aws s3 cp artifact.zip s3://marina-artifacts/lambda/lambda-mailer-${{ env.GIT_DESCRIBE }}.zip --quiet

- name: ZIP tag
run: echo "${{ env.GIT_DESCRIBE }}"

0 comments on commit 5034174

Please sign in to comment.