Skip to content

Commit

Permalink
Fix prod & dev release
Browse files Browse the repository at this point in the history
  • Loading branch information
gideonshaked committed Jul 1, 2021
1 parent 10196c5 commit 8a415b4
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: Development Release

on:
push:
Expand All @@ -23,7 +23,7 @@ jobs:
- name: Build
run: make pyinstaller

- name: Release (Untagged)
- name: Release
if: "!startsWith(github.ref, 'refs/tags/v')"
uses: "marvinpinto/action-automatic-releases@latest"
with:
Expand All @@ -32,11 +32,3 @@ jobs:
automatic_release_tag: "latest"
prerelease: true
files: dist/*

- name: Release (Tagged)
if: startsWith(github.ref, 'refs/tags/v') && github.ref == 'refs/heads/master'
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: dist/*
33 changes: 33 additions & 0 deletions .github/workflows/release_prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Production Release

on:
create:
tags:
- v*

jobs:
build:
runs-on: windows-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.8"

- name: Install Pyinstaller
run: |
python -m pip install --upgrade pip
python -m pip install pyinstaller
- name: Build
run: make pyinstaller

- name: Release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: dist/*

0 comments on commit 8a415b4

Please sign in to comment.