-
-
Notifications
You must be signed in to change notification settings - Fork 24
29 lines (26 loc) · 942 Bytes
/
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
name: Flatpak Release
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
container:
image: bilelmoussaoui/flatpak-github-actions:gnome-44
options: --privileged
steps:
- uses: actions/checkout@v3
- name: Generate release tag
id: tag
run: |
echo "::set-output name=release_tag::$(cat meson.build | grep "\sversion.*" | grep -oE "'([^']+)'" | sed "s/'//g")"
- uses: flatpak/flatpak-github-actions/[email protected]
with:
bundle: gearlever-${{ steps.tag.outputs.release_tag }}-x86_64.flatpak
manifest-path: it.mijorus.gearlever.json
- name: Publish release package
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.tag.outputs.release_tag }}
files: gearlever-${{ steps.tag.outputs.release_tag }}-x86_64.flatpak