Skip to content

Commit

Permalink
fix: release action java env
Browse files Browse the repository at this point in the history
  • Loading branch information
zhu-xiaowei committed Dec 29, 2024
1 parent c4d8c57 commit 6fe3e4d
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}
Expand All @@ -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

0 comments on commit 6fe3e4d

Please sign in to comment.