-
Notifications
You must be signed in to change notification settings - Fork 15
37 lines (35 loc) · 1.11 KB
/
release.yaml
File metadata and controls
37 lines (35 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Publish a release
run-name: ${{ github.actor }} triggered a release upon new tag
on:
push:
tags:
- "ibsim-*.*"
jobs:
Release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: '0'
- name: Build
run: |
./dist.sh
- name: Test
run: |
test -e ibsim*.tar.gz
- name: Generate Changelog
run: |
echo "All component versions are from recent master branch." > ${{ github.workspace }}-CHANGELOG.txt
echo "Full list of changes are below:\n" >> ${{ github.workspace }}-CHANGELOG.txt
git shortlog -n $(git tag --sort=-creatordate | grep ibsim- | head -2 | tail -n 1)..HEAD >> ${{ github.workspace }}-CHANGELOG.txt
- name: Print Changelog
run: |
cat ${{ github.workspace }}-CHANGELOG.txt
- name: Release
uses: softprops/action-gh-release@v0.1.15
if: startsWith(github.ref, 'refs/tags/')
with:
body_path: ${{ github.workspace }}-CHANGELOG.txt
files: |
ibsim*.tar.gz