Skip to content

Commit 91dd62f

Browse files
committed
Trying to solve issues with ci.
1 parent 124a268 commit 91dd62f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ jobs:
8888
8989
- name: Export variables
9090
run: |
91+
set -exo pipefail
9192
echo "GH_REPO_OWNER=${GITHUB_REPOSITORY_OWNER}" >> $GITHUB_ENV
9293
echo "GH_REPO_NAME=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV
9394
export PREVIOUS_TAG=$(git describe HEAD^1 --abbrev=0 --tags)
@@ -98,11 +99,12 @@ jobs:
9899
99100
- name: Publish package to GitHub Releases
100101
run: |
102+
set -exo pipefail
101103
if [[ "${PREVIOUS_TAG}" == "" ]]; then export GIT_HISTORY=$(git log --no-merges --format="- %s"); fi
102104
export CI_COMMIT_TAG="${{ github.ref_name }}"
103105
export RELEASE_DATE=$(date '+%Y-%m-%d')
104106
echo "MetaCall Distributable Linux ${CI_COMMIT_TAG} [${RELEASE_DATE}] - ${GH_REPO_OWNER}/${GH_REPO_NAME}:${CI_COMMIT_SHA}" && echo "${GIT_HISTORY}"
105-
ghr -t "${{ secrets.GITHUB_TOKEN }}" -u "${GH_REPO_OWNER}" -r "${GH_REPO_NAME}" -c "${CI_COMMIT_SHA}" -n "MetaCall Distributable Linux ${CI_COMMIT_TAG} [${RELEASE_DATE}]" -b "${GIT_HISTORY}" -replace "${CI_COMMIT_TAG}" `pwd`/out/*
107+
ghr -t "${{ secrets.GITHUB_TOKEN }}" -u "${GH_REPO_OWNER}" -r "${GH_REPO_NAME}" -c "${CI_COMMIT_SHA}" -n "MetaCall Distributable Linux ${CI_COMMIT_TAG} [${RELEASE_DATE}]" -b "${GIT_HISTORY}" -replace "${CI_COMMIT_TAG}" "${PWD}/out/"
106108
107109
install-test:
108110
name: Trigger Install Test Workflow

0 commit comments

Comments
 (0)