update version and include chocolatey build

This commit is contained in:
Valerie Robb (THOMAS) 2020-10-25 23:10:39 -07:00
Родитель 94f24a7f6e
Коммит 09e86fafac
3 изменённых файлов: 41 добавлений и 41 удалений

78
.github/workflows/ci-build.yml поставляемый
Просмотреть файл

@ -21,8 +21,8 @@ env:
BUILD_TYPE: 'Release'
CHOCO_CONFIG_DIR: 'build/chocolatey'
CHOCO_PACKAGE_OUTPUT_DIR: 'choco-package'
CHOCO_PACKAGE_REPO_INTERNAL: 'https://www.myget.org/F/aim-dev/api/v2'
CHOCO_PACKAGE_REPO_PUBLIC: 'https://www.myget.org/F/aim-dev-public/api/v2'
CHOCO_PACKAGE_REPO_INTERNAL: 'https://push.chocolatey.org/'
CHOCO_PACKAGE_REPO_PUBLIC: 'https://push.chocolatey.org/'
CHOCO_PACKAGE_REPO_FOLDER: 'chocolatey-packages'
CHOCO_SRC_DIR: 'choco-src'
CODE_COVERAGE_THRESHOLD: 0
@ -100,40 +100,40 @@ jobs:
choco pack $f --version=${{ env.VERSION_NUMBER_SEM1 }} --outputdirectory ./${{ env.OUTPUT_DIR }}/${{ env.CHOCO_PACKAGE_OUTPUT_DIR }}
done
# - name: Push the Chocolatey package to the internal repo
# if: github.event_name == 'release' || (github.event_name == 'push' && github.ref == 'refs/heads/main')
# shell: bash
# run: |
# find ./${{ env.OUTPUT_DIR }}/${{ env.CHOCO_PACKAGE_OUTPUT_DIR }}/ -name "*.nupkg" |
# while read f; do
# retryCount=0
# while true; do
# choco push $f -s ${{ env.CHOCO_PACKAGE_REPO_INTERNAL }} -k ${{ secrets.AIM_CHOCO_INTERNAL_REPO_TOKEN }} && break
# retryCount=$((retryCount+1))
# if (( "$retryCount" <= ${{ env.SCRIPT_MAX_RETRIES }} )); then
# echo "Retrying the processing of $f"
# sleep ${{ env.SCRIPT_RETRY_SLEEP_IN_SECONDS }}
# else
# break
# fi
# done
# done
#
# - name: Push the Chocolatey package to the publicly shared repo
# if: github.event_name == 'schedule'
# shell: bash
# run: |
# find ./${{ env.OUTPUT_DIR }}/${{ env.CHOCO_PACKAGE_OUTPUT_DIR }}/ -name "*.nupkg" |
# while read f; do
# retryCount=0
# while true; do
# choco push $f -s ${{ env.CHOCO_PACKAGE_REPO_PUBLIC }} -k ${{ secrets.AIM_CHOCO_PUBLIC_REPO_TOKEN }} && break
# retryCount=$((retryCount+1))
# if (( "$retryCount" <= ${{ env.SCRIPT_MAX_RETRIES }} )); then
# echo "Retrying the processing of $f"
# sleep ${{ env.SCRIPT_RETRY_SLEEP_IN_SECONDS }}
# else
# break
# fi
# done
# done
- name: Push the Chocolatey package to the internal repo
if: github.event_name == 'release' || (github.event_name == 'push' && github.ref == 'refs/heads/main')
shell: bash
run: |
find ./${{ env.OUTPUT_DIR }}/${{ env.CHOCO_PACKAGE_OUTPUT_DIR }}/ -name "*.nupkg" |
while read f; do
retryCount=0
while true; do
choco push $f -s ${{ env.CHOCO_PACKAGE_REPO_INTERNAL }} -k ${{ secrets.AIM_CHOCO_INTERNAL_REPO_TOKEN }} && break
retryCount=$((retryCount+1))
if (( "$retryCount" <= ${{ env.SCRIPT_MAX_RETRIES }} )); then
echo "Retrying the processing of $f"
sleep ${{ env.SCRIPT_RETRY_SLEEP_IN_SECONDS }}
else
break
fi
done
done
- name: Push the Chocolatey package to the publicly shared repo
if: github.event_name == 'schedule'
shell: bash
run: |
find ./${{ env.OUTPUT_DIR }}/${{ env.CHOCO_PACKAGE_OUTPUT_DIR }}/ -name "*.nupkg" |
while read f; do
retryCount=0
while true; do
choco push $f -s ${{ env.CHOCO_PACKAGE_REPO_PUBLIC }} -k ${{ secrets.AIM_CHOCO_PUBLIC_REPO_TOKEN }} && break
retryCount=$((retryCount+1))
if (( "$retryCount" <= ${{ env.SCRIPT_MAX_RETRIES }} )); then
echo "Retrying the processing of $f"
sleep ${{ env.SCRIPT_RETRY_SLEEP_IN_SECONDS }}
else
break
fi
done
done

Просмотреть файл

@ -1 +1 @@
0.3.0
0.5.0

Просмотреть файл

@ -1 +1 @@
alpha
beta