Skip to content

Commit

Permalink
ci: fix build post
Browse files Browse the repository at this point in the history
  • Loading branch information
cipchk committed Mar 15, 2024
1 parent f3b3325 commit b86d542
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ jobs:
env:
ACCESS_TOKEN: ${{ secrets.CI_TOKEN }}
MESSAGE: ${{ github.event.pull_request.title || github.event.head_commit.message }}
BRANCH: ${{ github.ref_name }}
- name: Build site
run: yarn run site:build
- name: 'Deploy Site'
Expand Down
5 changes: 4 additions & 1 deletion scripts/ci/build-artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ buildVersion=$(node -pe "require('./package.json').version")
branchName=${BRANCH:-'master'}

buildVersionName="${buildVersion}-${commitSha}"
buildTagName="${branchName}-${commitSha}"
buildTagName=${TAG_NAME:-"${branchName}-${commitSha}"}
if [[ -n "${GITHUB_HEAD_REF}" ]]; then
buildTagName="${branchName}-${GITHUB_HEAD_REF}"
fi
buildCommitMessage="${branchName} - ${MESSAGE}"

repoUrl="https://github.com/ng-alain/${packageRepo}.git"
Expand Down

0 comments on commit b86d542

Please sign in to comment.