From 649f5fd3cce6f9952c063fb38a675beb94914999 Mon Sep 17 00:00:00 2001 From: LeoMartinDev Date: Tue, 27 Oct 2020 21:16:35 +0100 Subject: [PATCH] updated github workflows --- .github/workflows/main.yml | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7046981..4cc5d18 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,10 +1,10 @@ -name: Releases +name: Main on: push: # Sequence of patterns matched against refs/tags tags: - - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 + - 'v*.*.*' # Push events to matching v*, i.e. v1.0, v20.15.10 jobs: build: @@ -19,24 +19,10 @@ jobs: run: npm ci - name: Build binaries run: npm run build - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - draft: false - prerelease: false - - name: Upload Release Asset - run: | - set -x - assets=() - for asset in ./build; do - assets+=("-a" "$asset") - done - tag_name="${GITHUB_REF##*/}" - hub release create "${assets[@]}" -m "$tag_name" "$tag_name" + files: ./build/* env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file