forked from AdrianTM/mx-packageinstaller
-
Notifications
You must be signed in to change notification settings - Fork 11
38 lines (31 loc) · 1.29 KB
/
release.yaml
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
name: Create Release
on:
push:
tags:
- '*'
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Get Latest Changelog Entry
id: get-changelog
run: |
changelog=$(awk '/^mx-packageinstaller/{i++} i==1' debian/changelog | grep '^[[:space:]]*\*')
echo "changelog<<EOF" >> $GITHUB_ENV
echo "$changelog" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: Create Release
id: create_release
uses: ncipollo/release-action@v1
with:
name: Release ${{ github.ref_name }}
body: |
### Automated release created for tag *${{ github.ref_name }}*
- Direct download link: [![build service)](https://build.opensuse.org/projects/home:mx-packaging/packages/mx-packageinstaller/badge.svg?type=default)](https://software.opensuse.org//download.html?project=home%3Amx-packaging&package=mx-packageinstaller)
- In repos: [![latest packaged version](https://repology.org/badge/latest-versions/mx-packageinstaller.svg)](https://repology.org/project/mx-packageinstaller/versions)
### Changelog
${{ env.changelog }}
draft: false
prerelease: false