Skip to content

Commit

Permalink
Create release script
Browse files Browse the repository at this point in the history
  • Loading branch information
jsjohnstone committed Dec 26, 2023
1 parent a6477fb commit 2e3dea7
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Node.js CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: '20.x'
cache: 'npm'
- run: npm ci
- run: rm -rf ./lambda_function.zip
- run: zip -r ./lambda_function.zip . -x ".git/*" -x "assets/*" -x .env -x "README.md" -x ".gitignore" -x ".env.example" -x "cloudformation.yml"
- uses: "marvinpinto/action-automatic-releases@919008cf3f741b179569b7a6fb4d8860689ab7f0"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: false
title: "Release"
files: |
lambda_function.zip

0 comments on commit 2e3dea7

Please sign in to comment.