Skip to content

Commit

Permalink
Create release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mijorus authored Jun 11, 2023
1 parent 0624c6e commit 7800412
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Flatpak Build

on:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
container:
image: bilelmoussaoui/flatpak-github-actions:gnome-44
options: --privileged

steps:
- name: Generate release tag
id: tag
run: |
echo "::set-output name=release_tag::gearlever_nightly_$(cat meson.build | grep "\sversion.*" | grep -oE "'([^']+)'" | sed "s/'//g")"
- uses: actions/checkout@v3
- 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 }}.flatpak

0 comments on commit 7800412

Please sign in to comment.