diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cd34e8e6c..e04987843 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -108,60 +108,13 @@ jobs: steps: - uses: actions/download-artifact@v2 - - name: Check if is prelease - if: startsWith(github.ref, 'refs/tags/') - id: check-tag - run: | - if [[ ${{ github.event.ref }} =~ ^refs/tags/[0-9]+\.[0-9]+\.[0-9]+\-(dev|beta)[0-9]+$ ]]; then - echo ::set-output name=prelease::true - fi - - - name: Create Prerelease - if: startsWith(github.ref, 'refs/tags/') && steps.check-tag.outputs.prelease == 'true' - run: | - set -x - assets=() - for asset in $(find -name *.deb); do - assets+=("-a" "$asset") - done - for asset in $(find -name *.msi); do - assets+=("-a" "$asset") - done - for asset in $(find -name *.dmg); do - assets+=("-a" "$asset") - done - for asset in $(find -name *.apk); do - assets+=("-a" "$asset") - done - for asset in $(find -name *.aab); do - assets+=("-a" "$asset") - done - tag_name="${GITHUB_REF##*/}" - hub release create "${assets[@]}" -m "$tag_name" "$tag_name" -p - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Create Release - if: startsWith(github.ref, 'refs/tags/') && steps.check-tag.outputs.prelease != 'true' - run: | - set -x - assets=() - for asset in $(find -name *.deb); do - assets+=("-a" "$asset") - done - for asset in $(find -name *.msi); do - assets+=("-a" "$asset") - done - for asset in $(find -name *.dmg); do - assets+=("-a" "$asset") - done - for asset in $(find -name *.apk); do - assets+=("-a" "$asset") - done - for asset in $(find -name *.aab); do - assets+=("-a" "$asset") - done - tag_name="${GITHUB_REF##*/}" - hub release create "${assets[@]}" -m "$tag_name" "$tag_name" - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Draft a new release + uses: softprops/action-gh-release@v1 + with: + draft: true + files: | + **/*.deb + **/*.msi + **/*.dmg + **/*.apk + **/*.aab