Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added workflow for automated releases #121

Merged
merged 22 commits into from
May 14, 2024
Merged
Changes from 21 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Release

on:
workflow_dispatch:
inputs:
releaseVersion:
description: "Version to use for the release."
required: true
default: "X.Y"
releaseBody:
description: "Information about the release"
required: true
default: "New release"
jobs:
Release:
environment: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
seshubaws marked this conversation as resolved.
Show resolved Hide resolved
with:
ref: main
- name: Set up python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Build
run: make compile-with-docker-all
seshubaws marked this conversation as resolved.
Show resolved Hide resolved
- name: Run Integ Tests
run: |
make tests-with-docker
make integ-tests-with-docker-x86-64
make integ-tests-with-docker-arm64
make integ-tests-with-docker-old
seshubaws marked this conversation as resolved.
Show resolved Hide resolved
- name: Release
uses: softprops/action-gh-release@v2
with:
name: Release ${{ github.event.inputs.releaseVersion }}
tag_name: v${{ github.event.inputs.releaseVersion }}
body: ${{ github.event.inputs.releaseBody }}
files: |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add more info to the release ? Maybe not important, but in the past we've prefixed the Release names with "Release ".

Also, we could probably add a parameter to add as the body of the release, in case we want to add some info there.
Like

- Update Go version of the RIE binary to 1.21.9

in the latest release.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added something to do this when setting the release version, but you can only enter in one line of notes (aka you can't use bullet points etc). You can always edit the body after the release though, is that ok?

bin/aws-lambda-rie
bin/aws-lambda-rie-arm64
bin/aws-lambda-rie-x86_64