Skip to content

Commit f5f807f

Browse files
committed
Add release workflow for litani
1 parent 79d1984 commit f5f807f

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.github/workflows/create-release.yaml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
on:
2+
push:
3+
tags:
4+
- 'litani-*'
5+
6+
name: Create Release
7+
8+
jobs:
9+
perform-release:
10+
name: Perform Release
11+
runs-on: ubuntu-20.04
12+
env:
13+
GITHUB_TOKEN: ${{ secrets.RELEASE_CI_ACCESS_TOKEN }}
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v2
17+
- name: Get Version
18+
run: echo "VERSION=$(echo ${{ github.ref }} | cut -d "/" -f 3 | cut -d "-" -f 2)" >> $GITHUB_ENV
19+
- name: Create release
20+
uses: actions/create-release@v1
21+
with:
22+
tag_name: litani-${{ env.VERSION }}
23+
release_name: litani-${{ env.VERSION }}
24+
body: |
25+
This is Litani version ${{ env.VERSION }}.
26+
27+
## MacOS
28+
29+
On MacOS, install Litani using [Homebrew](https://brew.sh/) with
30+
31+
```sh
32+
brew install aws/tap/litani
33+
```
34+
35+
or upgrade (if it's already been installed) with:
36+
37+
```sh
38+
brew upgrade litani
39+
```
40+
41+
## Ubuntu
42+
43+
On Ubuntu, install Litani by downloading the *.deb package below for Ubuntu 20 and install with
44+
45+
```sh
46+
# Ubuntu 20.04:
47+
$ apt install -y ./litani-${{ env.VERSION }}.deb
48+
```
49+
draft: false
50+
prerelease: false

0 commit comments

Comments
 (0)