Skip to content
Open
Changes from all 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.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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/[email protected]
if: startsWith(github.ref, 'refs/tags/')
with:
body_path: ${{ github.workspace }}-CHANGELOG.txt
files: |
ibsim*.tar.gz