diff --git a/.github/workflows/android-deploy.yml b/.github/workflows/android-deploy.yml index 294b646a..802b00c3 100644 --- a/.github/workflows/android-deploy.yml +++ b/.github/workflows/android-deploy.yml @@ -18,10 +18,6 @@ jobs: run: | echo "GPF_key=${{ secrets.GPF_key }}" > .env - - name: Get the tagname - id: get_tagname - run: echo TAGNAME=$(echo ${GITHUB_REF##*/}) >> $GITHUB_OUTPUT - - name: Setup Node.js uses: actions/setup-node@v3 with: @@ -36,6 +32,12 @@ jobs: - name: Sync run: npx cap sync + - name: Set up Java + uses: actions/setup-java@v2 + with: + distribution: "temurin" + java-version: 17 + - name: Build Android Release APK run: cd android && ./gradlew assembleRelease @@ -54,7 +56,6 @@ jobs: serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }} packageName: fr.ign.geoportail releaseFiles: ${{ steps.sign_apk.outputs.signedReleaseFile }} - track: qa + track: internal status: completed - releaseName: ${{ steps.get_tagname.outputs.TAGNAME }} inAppUpdatePriority: 5 diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml new file mode 100644 index 00000000..486815e3 --- /dev/null +++ b/.github/workflows/create-release.yml @@ -0,0 +1,22 @@ +name: Create release + +on: + push: + tags: + - 'v[0-9]+.[0-9]+.[0-9]+' + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - name: Create Release + id: create_release + uses: actions/create-release@v1.1.2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: ${{ github.ref }} + draft: false + prerelease: false diff --git a/.github/workflows/ios-deploy.yml b/.github/workflows/ios-deploy.yml index 793de398..5c4641c7 100644 --- a/.github/workflows/ios-deploy.yml +++ b/.github/workflows/ios-deploy.yml @@ -18,10 +18,6 @@ jobs: run: | echo "GPF_key=${{ secrets.GPF_key }}" > .env - - name: Get the tagname - id: get_tagname - run: echo TAGNAME=$(echo ${GITHUB_REF##*/}) >> $GITHUB_OUTPUT - - name: Setup Node.js uses: actions/setup-node@v3 with: