diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d3b0edb..580deb7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,8 +16,8 @@ on: pull_request: branches: [ "main" ] env: -# NEW_VERSION: ${{ github.event.inputs.release_tag }} -# NEW_VERSION_CODE: ${{ github.event.inputs.release_code }} + # NEW_VERSION: ${{ github.event.inputs.release_tag }} + # NEW_VERSION_CODE: ${{ github.event.inputs.release_code }} NEW_VERSION: 1.8.0 NEW_VERSION_CODE: 13 jobs: @@ -29,16 +29,20 @@ jobs: ref: latex fetch-depth: 0 token: ${{ secrets.PROJECT_TOKEN }} + - uses: actions/setup-java@v4 + with: + distribution: 'corretto' + java-version: '17' - name: Modify for next release run: | cd react-native - npm i chmod +x release.sh ./release.sh ${{ env.NEW_VERSION }} ${{ env.NEW_VERSION_CODE }} + npm i git diff + git add . git config user.name '${{ vars.USER_NAME }}' git config user.email '${{ vars.USER_EMAIL }}' - git add . git commit -m 'release: SwiftChat v${{ env.NEW_VERSION }}' git push git tag ${{ env.NEW_VERSION }} @@ -55,7 +59,7 @@ jobs: with: name: "SwiftChat v${{ env.NEW_VERSION }}" files: | - *.apk + react-native/android/app/build/outputs/apk/release/*.apk tag_name: "${{ env.NEW_VERSION }}" prerelease: false generate_release_notes: true