Do not deploy for test workflow runs

This commit is contained in:
Wilson Lin 2020-06-19 11:44:54 +10:00
parent 5b569ddcb4
commit a35f1c181c
4 changed files with 12 additions and 4 deletions

View File

@ -100,4 +100,6 @@ jobs:
</profiles>
</settings>
EOF
mvn clean deploy
if [[ "$GITHUB_REF" != refs/tags/v* ]]; then
mvn clean deploy
fi

View File

@ -88,4 +88,6 @@ jobs:
b2 authorize-account ${{ secrets.CICD_CLI_B2_KEY_ID }} ${{ secrets.CICD_CLI_B2_APPLICATION_KEY }}
b2 sync b2://${{ secrets.CICD_CLI_B2_BUCKET_NAME }}/hyperbuild/bin/nodejs/${{ steps.version.outputs.VERSION }}/ ./dist/.
cp ../README.md .
npm publish
if [[ "${{ steps.version.outputs.VERSION }}" != "0.0.0" ]]; then
npm publish
fi

View File

@ -105,4 +105,6 @@ jobs:
b2 authorize-account ${{ secrets.CICD_CLI_B2_KEY_ID }} ${{ secrets.CICD_CLI_B2_APPLICATION_KEY }}
b2 sync b2://${{ secrets.CICD_CLI_B2_BUCKET_NAME }}/hyperbuild/bin/python/${{ steps.version.outputs.VERSION }}/ ./hyperbuild/.
python setup.py sdist bdist_wheel
python -m twine upload dist/*
if [[ "${{ steps.version.outputs.VERSION }}" != "0.0.0" ]]; then
python -m twine upload dist/*
fi

View File

@ -119,4 +119,6 @@ jobs:
:rubygems_api_key: ${{ secrets.RUBYGEMS_API_KEY }}
EOF
chmod 0600 "$HOME/.gem/credentials"
gem push hyperbuild-${{ steps.version.outputs.VERSION }}.gem
if [[ "${{ steps.version.outputs.VERSION }}" != "0.0.0" ]]; then
gem push hyperbuild-${{ steps.version.outputs.VERSION }}.gem
fi