Skip to content

Commit 2225339

Browse files
initial implementation of flat-manager action
1 parent 17594c8 commit 2225339

File tree

7 files changed

+1834
-15
lines changed

7 files changed

+1834
-15
lines changed

.github/workflows/flatpak-test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ jobs:
1818
bundle: org.example.MyApp.Devel.flatpak
1919
manifest-path: ./flatpak-builder/tests/test-project/org.example.MyApp.yaml
2020
cache-key: flatpak-builder-${{ github.sha }}
21+
- uses: ./flat-manager
22+
with:
23+
repository: elementary
24+
flat-manager-url: https://flatpak-api.elementary.io
25+
token: some_very_hidden_token
26+
2127
tests:
2228
name: Tests
2329
runs-on: ubuntu-latest

flat-manager/Dockerfile

Whitespace-only changes.

flat-manager/action.yml

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,21 @@ name: "flat-manager"
22
description: "Deploy your Flatpak application to a repository"
33
author: "Bilal Elmoussaoui"
44
branding:
5-
icon: "package"
5+
icon: "upload-cloud"
66
color: "blue"
77
inputs:
8-
bundle:
9-
description: "The bundle name, by default it's app.flatpak"
10-
required: false
11-
default: "app.flatpak"
12-
repository-url:
8+
repository:
139
description: >
14-
The repository used to fetch the runtime when the user downloads the
15-
Flatpak bundle.
16-
required: false
17-
default: "https://flathub.org/repo/flathub.flatpakrepo"
18-
repository-name:
10+
The Flatpak repository to push the build into.
11+
required: true
12+
flat-manager-url:
1913
description: >
20-
The repository name to install the runtime from at build/install time.
21-
Note that the repository name corresponds to the `repository-url` mentioned above.
22-
required: false
23-
default: "flathub"
14+
The flat-manager repository URL.
15+
required: true
16+
token:
17+
description: >
18+
A flat-manager token to publish into the repository
19+
required: true
2420
runs:
2521
using: "node12"
2622
main: "dist/index.js"

0 commit comments

Comments
 (0)