Skip to content

Commit f20ab39

Browse files
committed
Add version to build-flatpak.yaml artifact name
1 parent a7afebb commit f20ab39

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.github/workflows/build-flatpack.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,21 @@ jobs:
1616
- name: Check out repository
1717
uses: actions/checkout@v4
1818

19+
- name: Extract version from CITATION.cff
20+
run: |
21+
VERSION=$(
22+
grep '^version:' CITATION.cff
23+
| sed 's/version: *//'
24+
| tr -d '"'
25+
| tr -d "'"
26+
)
27+
28+
echo "PACKAGE_VERSION=$VERSION" >> $GITHUB_ENV
29+
shell: bash
30+
1931
- name: Build Flatpak
2032
uses: flatpak/flatpak-github-actions/flatpak-builder@v6
2133
with:
22-
bundle: logopak.flatpak
34+
bundle: "logopak-${{ env.PACKAGE_VERSION }}.flatpak"
2335
manifest-path: flatpak/com.danielvartan.logopak.yaml
2436
cache-key: flatpak-builder-${{ github.sha }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ An easier way to distribute the application is by creating a Flatpak bundle. For
109109
```bash
110110
cd flatpak
111111
flatpak-builder --repo=repo --force-clean build-dir com.danielvartan.logopak.yaml
112-
flatpak build-bundle repo logopak.flatpak com.danielvartan.logopak
112+
flatpak build-bundle repo ../logopak.flatpak com.danielvartan.logopak
113113
```
114114

115115
After creating the `logopak.flatpak` bundle, you can share it with others. Anyone can install it with:

0 commit comments

Comments
 (0)