|
@@ -65,5 +65,12 @@ jobs:
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
if: ${{ startsWith(github.ref, 'refs/tags/') && github.repository == 'BlueSCSI/BlueSCSI-v2' }}
|
|
if: ${{ startsWith(github.ref, 'refs/tags/') && github.repository == 'BlueSCSI/BlueSCSI-v2' }}
|
|
|
run: |
|
|
run: |
|
|
|
|
|
+ set +e
|
|
|
RELEASE=$(basename ${{github.ref}})
|
|
RELEASE=$(basename ${{github.ref}})
|
|
|
- gh release create --repo ${GITHUB_REPOSITORY} -t $RELEASE $RELEASE BlueSCSI/distrib/*
|
|
|
|
|
|
|
+ gh release create --repo ${GITHUB_REPOSITORY} -t $RELEASE $RELEASE BlueSCSI/distrib/*
|
|
|
|
|
+ status=$?
|
|
|
|
|
+ set -e
|
|
|
|
|
+ if [ $status -ne 0 ]; then
|
|
|
|
|
+ gh release upload --repo ${GITHUB_REPOSITORY} $RELEASE BlueSCSI/distrib/*
|
|
|
|
|
+ fi
|
|
|
|
|
+
|