diff --git a/.github/workflows/app-prebuild.yml b/.github/workflows/app-prebuild.yml index 894e03c..deae42a 100644 --- a/.github/workflows/app-prebuild.yml +++ b/.github/workflows/app-prebuild.yml @@ -16,6 +16,7 @@ on: env: KEY_PROPERTIES: ${{ secrets.KEY_PROPERTIES }} +# IMAGE_TAG: "" #we get tag using the action down below # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: @@ -57,6 +58,11 @@ jobs: ls -la ls -la build/app/outputs/apk/release + - run: | + echo "IMAGE_TAG=${{steps.tag.outputs.tag}}" >> $GITHUB_ENV + echo $GITHUB_ENV + + - name: upload apk uses: actions/upload-artifact@v3 with: @@ -69,8 +75,12 @@ jobs: name: all.zip path: build/app/outputs/apk/release/ - - name: Release + - name: rename apk + if: startsWith(github.ref, 'refs/tags/') + run: mv build/app/outputs/apk/release/app-release.apk build/app/outputs/apk/release/EOEFANS-${{ env.IMAGE_TAG }}.apk + + - name: Publish release uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') with: - files: build/app/outputs/apk/release/app-release.apk + files: build/app/outputs/apk/release/EOEFANS-${{ env.IMAGE_TAG }}.apk