Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
tuantrannav committed Aug 2, 2023
1 parent 66c3fa3 commit b720200
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

6 changes: 3 additions & 3 deletions prepare-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit b720200

Please sign in to comment.