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/