Skip to content

Commit

Permalink
updated github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoMartinDev committed Oct 27, 2020
1 parent 7af6e20 commit 649f5fd
Showing 1 changed file with 6 additions and 20 deletions.
26 changes: 6 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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 }}

0 comments on commit 649f5fd

Please sign in to comment.