Skip to content

Commit

Permalink
Create release-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mangoozt authored Oct 19, 2020
1 parent 2df57a0 commit 6c9f923
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build release

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
release:
types: [created]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

# Runs a single command using the runners shell
- name: PyInstaller Windows
# You may pin to the exact commit or the version.
# uses: JackMcKew/pyinstaller-action-windows@a8dee21ad01bbc7e7363d445bb632691b95ba057
uses: JackMcKew/pyinstaller-action-windows@v0.1.2
with:
# Directory containing source code (optional requirements.txt).
path: . # default is src
# Specify a custom URL for PYPI
#pypi_url: # optional, default is https://pypi.python.org/
# Specify a custom URL for PYPI Index
#pypi_index_url: # optional, default is https://pypi.python.org/simple
# Specify a file path for .spec file
spec: app.spec # optional, default is
- uses: actions/upload-artifact@v2
with:
name: app.exe
path: dist/windows
- name: Release
uses: fnkr/github-action-ghr@v1
if: startsWith(github.ref, 'refs/tags/')
env:
#GHR_COMPRESS: xz
GHR_PATH: dist/windows/app.exe
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 6c9f923

Please sign in to comment.