From e69de413e4801d1757eeace3ae6068ed066b551e Mon Sep 17 00:00:00 2001 From: Petr Heinz Date: Wed, 4 Oct 2023 18:30:58 +0200 Subject: [PATCH] L-168 Build and upload ZIP archive as workflow artifact (#2) --- .github/workflows/releases.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/releases.yml diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml new file mode 100644 index 0000000..be1f2b0 --- /dev/null +++ b/.github/workflows/releases.yml @@ -0,0 +1,32 @@ +name: Releases + +on: + push: + tags: + - '*' + +jobs: + release: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Check out source code + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: 18.x + cache: npm + + - name: Install dependencies + run: npm install + + - name: Build ZIP archive + run: npm run build + + - name: Create release on Github + uses: ncipollo/release-action@v1 + with: + artifacts: build/logtail-aws-lambda.zip