From b720200e5ce10dd0310a9adace069a91a0505e9b Mon Sep 17 00:00:00 2001 From: Dinh Anh Tuan Tran Date: Wed, 2 Aug 2023 13:39:38 +0200 Subject: [PATCH] test --- .github/workflows/build-publish.yml | 30 ++++++++++++++--------------- prepare-release.sh | 6 +++--- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build-publish.yml b/.github/workflows/build-publish.yml index 0b942c3..1f82782 100644 --- a/.github/workflows/build-publish.yml +++ b/.github/workflows/build-publish.yml @@ -25,19 +25,19 @@ jobs: run: ./prepare-release.sh env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: publish - run: ./gradlew -Pversion="$VERSION_TAG" publish - env: - ORG_GRADLE_PROJECT_githubUser: x-access-token - ORG_GRADLE_PROJECT_githubPassword: ${{ secrets.GITHUB_TOKEN }} - - name: create release - uses: ncipollo/release-action@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag: ${{ env.VERSION_TAG }} - name: ${{ env.VERSION_TAG }} - body: ${{ env.CHANGE_LOG }} - draft: false - prerelease: false +# - name: publish +# run: ./gradlew -Pversion="$VERSION_TAG" publish +# env: +# ORG_GRADLE_PROJECT_githubUser: x-access-token +# ORG_GRADLE_PROJECT_githubPassword: ${{ secrets.GITHUB_TOKEN }} +# - name: create release +# uses: ncipollo/release-action@v1 +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# with: +# tag: ${{ env.VERSION_TAG }} +# name: ${{ env.VERSION_TAG }} +# body: ${{ env.CHANGE_LOG }} +# draft: false +# prerelease: false diff --git a/prepare-release.sh b/prepare-release.sh index 049ad08..b9a0ac7 100755 --- a/prepare-release.sh +++ b/prepare-release.sh @@ -19,9 +19,9 @@ fi LATEST_TAG=$(git describe --abbrev=0 --tags) -git remote set-url origin "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" -git tag -f $VERSION_TAG -git push -f --tags +#git remote set-url origin "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" +#git tag -f $VERSION_TAG +#git push -f --tags LATEST_RELEASE=$(curl -s -H "Authorization: token $GITHUB_TOKEN" "https://api.github.com/repos/$GITHUB_REPOSITORY/releases/latest" | jq -r '.tag_name')