From 6629edca8a7430221cb793fd3b7969ab22498e9f Mon Sep 17 00:00:00 2001 From: PT-ATA No One Date: Wed, 22 May 2024 09:53:42 +0200 Subject: [PATCH] take version from tag and write it to the appinfo --- .github/workflows/{makefile.yml => release-app.yml} | 6 ++++++ .gitignore | 3 --- 2 files changed, 6 insertions(+), 3 deletions(-) rename .github/workflows/{makefile.yml => release-app.yml} (70%) diff --git a/.github/workflows/makefile.yml b/.github/workflows/release-app.yml similarity index 70% rename from .github/workflows/makefile.yml rename to .github/workflows/release-app.yml index 6768b285..fdeb9ce6 100644 --- a/.github/workflows/makefile.yml +++ b/.github/workflows/release-app.yml @@ -23,6 +23,12 @@ jobs: - name: Build run: make build + - name: replace version + if: startsWith(github.ref, 'refs/tags/') + run: | + RELEASE_VERSION=${GITHUB_REF#refs/tags/} + sed -i "s/version = '0\.0\.0'/version = '$RELEASE_VERSION'/g" ./appinfo/info.xml + - name: Create artifact run: make appstore diff --git a/.gitignore b/.gitignore index 93d5a1ba..cfbc04f7 100644 --- a/.gitignore +++ b/.gitignore @@ -41,9 +41,6 @@ js/*hot-update.* # the fuelphp document /docs/ -# Github specific files -.github/ - # you may install these packages with `oil package`. # http://fuelphp.com/docs/packages/oil/package.html # /fuel/packages/auth/