- run:
command: |
VERSION=$(./build.sh version nightly)
- echo ${VERSION} > version.txt
./build.sh build
./build.sh pack ${VERSION}
- persist_to_workspace:
root: .
paths:
- XSF.*.nupkg
- - version.txt
build-release:
docker:
- run:
command: |
VERSION=$(echo ${CIRCLE_TAG} | sed -e "s/^v//")
- echo ${VERSION} > version.txt
./build.sh build
./build.sh pack ${VERSION}
- persist_to_workspace:
root: .
paths:
- XSF.*.nupkg
- - version.txt
deploy:
docker:
at: .
- run:
command: |
- VERSION=$(cat version.txt)
- ghr -t ${GITHUB_TOKEN} -u dotnet -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -replace v${VERSION} *.nupkg
+ ghr -t ${GITHUB_TOKEN} -u dotnet -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -replace ${CIRCLE_TAG} *.nupkg
workflows: