Flatpak Release #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}.flatpak | |
manifest-path: it.mijorus.gearlever.Devel.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 |