This commit is contained in:
Jan Prochazka
2020-05-11 16:14:19 +02:00
parent 8f2b357095
commit 0503635656

View File

@@ -2,8 +2,11 @@ name: Electron app
on: on:
push: push:
branches: tags:
- production - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
# branches:
# - production
jobs: jobs:
build: build:
@@ -52,6 +55,7 @@ jobs:
with: with:
name: ${{ matrix.os }} name: ${{ matrix.os }}
path: artifacts path: artifacts
- name: Release - name: Release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
@@ -59,3 +63,14 @@ jobs:
files: "artifacts/**" files: "artifacts/**"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Create Release
# id: create_release
# uses: actions/create-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: ${{ github.ref }}
# release_name: Release ${{ github.ref }}
# draft: false
# prerelease: false