mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-23 17:18:32 +02:00
Add v2026.2.0 release to metainfo, simplify CI workflow
- Metainfo is managed upstream (updated before tagging) - CI no longer modifies metainfo; just copies manifest and sources to Flathub - Flathub manifest installs metainfo from git source - Permissions reverted to read-only
This commit is contained in:
14
.github/workflows/flathub.yml
vendored
14
.github/workflows/flathub.yml
vendored
@@ -4,7 +4,7 @@ on:
|
|||||||
types: [published]
|
types: [published]
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update-flathub:
|
update-flathub:
|
||||||
@@ -34,15 +34,6 @@ jobs:
|
|||||||
- name: Run update-manifest.sh
|
- name: Run update-manifest.sh
|
||||||
run: bash flatpak/update-manifest.sh "${{ github.event.release.tag_name }}"
|
run: bash flatpak/update-manifest.sh "${{ github.event.release.tag_name }}"
|
||||||
|
|
||||||
- name: Commit metainfo update to app repo
|
|
||||||
run: |
|
|
||||||
git config user.name "github-actions[bot]"
|
|
||||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
||||||
git add flatpak/app.yaak.Yaak.metainfo.xml
|
|
||||||
git diff --cached --quiet && echo "No metainfo changes" && exit 0
|
|
||||||
git commit -m "Add ${{ github.event.release.tag_name }} to metainfo releases"
|
|
||||||
git push origin HEAD:main
|
|
||||||
|
|
||||||
- name: Checkout Flathub repo
|
- name: Checkout Flathub repo
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
@@ -53,13 +44,10 @@ jobs:
|
|||||||
- name: Copy updated files to Flathub repo
|
- name: Copy updated files to Flathub repo
|
||||||
run: |
|
run: |
|
||||||
cp flatpak/app.yaak.Yaak.yml flathub-repo/
|
cp flatpak/app.yaak.Yaak.yml flathub-repo/
|
||||||
cp flatpak/app.yaak.Yaak.metainfo.xml flathub-repo/
|
|
||||||
cp flatpak/cargo-sources.json flathub-repo/
|
cp flatpak/cargo-sources.json flathub-repo/
|
||||||
cp flatpak/node-sources.json flathub-repo/
|
cp flatpak/node-sources.json flathub-repo/
|
||||||
cp LICENSE flathub-repo/
|
cp LICENSE flathub-repo/
|
||||||
sed -i 's|path: \.\./LICENSE|path: LICENSE|' flathub-repo/app.yaak.Yaak.yml
|
sed -i 's|path: \.\./LICENSE|path: LICENSE|' flathub-repo/app.yaak.Yaak.yml
|
||||||
sed -i 's|install -Dm644 flatpak/app.yaak.Yaak.metainfo.xml|install -Dm644 app.yaak.Yaak.metainfo.xml|' flathub-repo/app.yaak.Yaak.yml
|
|
||||||
sed -i '/path: LICENSE/a\ # Metainfo file (with release history)\n - type: file\n path: app.yaak.Yaak.metainfo.xml' flathub-repo/app.yaak.Yaak.yml
|
|
||||||
|
|
||||||
- name: Commit and push to Flathub
|
- name: Commit and push to Flathub
|
||||||
working-directory: flathub-repo
|
working-directory: flathub-repo
|
||||||
|
|||||||
@@ -52,5 +52,6 @@
|
|||||||
</screenshots>
|
</screenshots>
|
||||||
|
|
||||||
<releases>
|
<releases>
|
||||||
|
<release version="2026.2.0" date="2026-02-10" />
|
||||||
</releases>
|
</releases>
|
||||||
</component>
|
</component>
|
||||||
|
|||||||
Reference in New Issue
Block a user