Skip to content

Commit

Permalink
Add deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
junalmeida committed Dec 15, 2024
1 parent 0437209 commit 5699421
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 23 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/build.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Deploy
on:
release:
types: [created]

jobs:
flatpak:
name: "Flatpak"
runs-on: ubuntu-latest
container:
image: bilelmoussaoui/flatpak-github-actions:kde-6.7
options: --privileged
steps:
- uses: actions/checkout@v4
- bash: |
VERSION=${GITHUB_REF##*/}
echo "APP_VERSION=$VERSION" >> $GITHUB_ENV
echo "APP_VERSION=$VERSION" > src/version.py
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
name: "Build"
with:
bundle: io.github.junalmeida.webapps_manager.flatpak
manifest-path: io.github.junalmeida.webapps_manager.json
cache-key: flatpak-builder-${{ github.sha }}
- name: Upload to Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: io.github.junalmeida.webapps_manager.flatpak
# - uses: flatpak/flatpak-github-actions/flat-manager@v6
# name: "Deploy"
# with:
# repository: flathub
# flat-manager-url: https://flatpak-api.elementary.io
# token: some_very_hidden_token
6 changes: 3 additions & 3 deletions src/WebAppManagerWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from PySide6.QtCore import Qt
from webapps_manager.icons import XDG_APPLICATION_EXECUTABLE, XDG_APPLICATION_INTERNET
from webapps_manager.browser import SUPPORTED_BROWSERS
from webapps_manager.common import IS_FLATPAK, REFERENCE_DPI, WebAppLauncher, APP
from webapps_manager.common import IS_FLATPAK, REFERENCE_DPI, WebAppLauncher, _
from webapps_manager.WebAppEdit import WebAppEdit
from webapps_manager.WebAppManager import WebAppManager

Expand Down Expand Up @@ -90,8 +90,8 @@ def actionLaunch_clicked(self):


def actionAbout_clicked(self):
QMessageBox.about(self.__window, "About Web Apps", f"""
<p><strong>Web Apps</strong> is a simple tool to manage web applications.</p>
QMessageBox.about(self.__window, f"{_("About")} {self.__window.windowTitle()}", f"""
<p><strong>{self.__window.windowTitle()}</strong> is a simple tool to manage web applications.</p>
<p>{APP_VERSION}</p>
<p>
<a href="https://github.com/junalmeida/webapps_manager/">Home</a> |
Expand Down

0 comments on commit 5699421

Please sign in to comment.