-
Notifications
You must be signed in to change notification settings - Fork 191
40 lines (36 loc) · 1.12 KB
/
release.yml
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
38
39
40
name: Release
on:
push:
branches:
- master
- feature-github-actions
jobs:
create:
name: Create release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Version
id: version
run: |
VERSION=$(grep AC_INIT configure.ac | cut -d"," -f2 | cut -d"[" -f2 | cut -d"]" -f1)
echo "number=$VERSION" >> $GITHUB_OUTPUT
- name: CHANGELOG
id: changelog
run: |
csplit CHANGELOG.md '/^---$/' '{*}' --suppress-matched
RELEASE_NOTE="$(cat xx02)"
echo "release_notes<<EOF" >> $GITHUB_OUTPUT
echo "$RELEASE_NOTE" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Create release
continue-on-error: true
uses: softprops/action-gh-release@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: FreeFEM v${{ steps.version.outputs.number }}
tag_name: v${{ steps.version.outputs.number }}-testActions
body: ${{ steps.changelog.outputs.release_notes }}
draft: false
prerelease: true