diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c0d092e..0bdce60 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,22 +21,23 @@ jobs: run: | echo "${{ env.COMMIT_MESSAGE }}" version=$(echo "${{ env.COMMIT_MESSAGE }}" | grep -oP 'Android \K\d+\.\d+\.\d+') + echo "release_version=$version" >> "$GITHUB_ENV" echo $version - echo v$version -# git config user.name '${{ vars.USER_NAME }}' -# git config user.email '${{ vars.USER_EMAIL }}' + git config user.name '${{ vars.USER_NAME }}' + git config user.email '${{ vars.USER_EMAIL }}' # git tag v$version # git push origin v$version -# - name: Assemble release -# run: | -# chmod +x gradlew -# ./gradlew assembleRelease + - name: Assemble release + run: | + echo v$release_version + chmod +x gradlew + ./gradlew assembleRelease # - name: Create GitHub release # uses: softprops/action-gh-release@v1 # with: -# name: "Clickstream Android ${{ env.NEW_VERSION }}" +# name: "Clickstream Android $release_version" # files: | # clickstream/build/outputs/aar/clickstream-release.aar -# tag_name: "v${{ env.NEW_VERSION }}" +# tag_name: "v$release_version" # prerelease: true # generate_release_notes: true \ No newline at end of file