chore: Bump version number and release notes #30
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 CI | |
on: | |
push: | |
pull_request: | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
container: | |
image: bilelmoussaoui/flatpak-github-actions:gnome-44 | |
options: --privileged | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6.1 | |
with: | |
bundle: com.pojtinger.felicitas.Multiplex.flatpak | |
manifest-path: com.pojtinger.felicitas.Multiplex.json | |
cache-key: flatpak-builder-${{ github.sha }} | |
- name: Extract branch name | |
id: extract_branch | |
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" | |
- name: Publish pre-release bundle to GitHub releases | |
if: ${{ github.ref == 'refs/heads/main' }} | |
uses: marvinpinto/action-automatic-releases@latest | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: release-${{ steps.extract_branch.outputs.branch }} | |
prerelease: true | |
files: | | |
*.flatpak | |
- name: Publish release to GitHub releases | |
if: startsWith(github.ref, 'refs/tags/v') | |
uses: marvinpinto/action-automatic-releases@latest | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
prerelease: false |