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 12 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
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release

on:
workflow_dispatch:
inputs:
releaseVersion:
description: "Version to use for the release."
required: true
default: "X.Y.Z"
seshubaws marked this conversation as resolved.
Show resolved Hide resolved
developmentVersion:
description: "Version to use for further development"
required: true
default: "X.Y.Z-RIE"
seshubaws marked this conversation as resolved.
Show resolved Hide resolved
jobs:
Release:
environment: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
seshubaws marked this conversation as resolved.
Show resolved Hide resolved
- name: Configure Git User # may be removed after https://github.com/actions/checkout/issues/13 is resolved
run: |
git config user.email "${{ github.actor }}@users.noreply.github.com"
git config user.name "${{ github.actor }}"
seshubaws marked this conversation as resolved.
Show resolved Hide resolved
- 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: Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.event.inputs.releaseVersion }}
seshubaws marked this conversation as resolved.
Show resolved Hide resolved
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