Skip to content

Commit

Permalink
External releases
Browse files Browse the repository at this point in the history
  • Loading branch information
junalmeida committed Dec 16, 2024
1 parent ff87bec commit 53f658e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,16 @@ jobs:
- name: "Set Version"
shell: bash
run: |
VERSION=${GITHUB_REF##*/}
echo "APP_VERSION=$VERSION" >> $GITHUB_ENV
echo "APP_VERSION=$VERSION" > src/version.py
APP_VERSION=${GITHUB_REF##*/}
APP_VERSION="${APP_VERSION:1}"
echo "APP_VERSION=$APP_VERSION" >> $GITHUB_ENV
echo "APP_VERSION=\"$APP_VERSION\"" > src/version.py
file=app/share/metainfo/releases/io.github.junalmeida.webapps_manager.releases.xml
content="\t<release version=\"$APP_VERSION\" date=\"$(date +%Y-%m-%d)\"/>"
echo $content
C=$(echo $content | sed 's/\//\\\//g')
sed "/<\/releases>/ s/.*/${C}\n&/" $file > $file.tmp
mv $file.tmp $file
- uses: flatpak/flatpak-github-actions/flatpak-builder@master
name: "Build"
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,7 @@
<categories>
<category>Network</category>
</categories>
<releases>
<release version="0.1" date="2024-12-14">
<description>
<p>First release</p>
</description>
</release>
</releases>
<releases type="external" />
<provides>
<binary>webapps_manager</binary>
</provides>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<releases>
</releases>

0 comments on commit 53f658e

Please sign in to comment.