Skip to content

Commit

Permalink
Create a draft release on pipeline done, upload installer artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
misdoro committed Nov 15, 2020
1 parent 030a599 commit 208c899
Showing 1 changed file with 34 additions and 7 deletions.
41 changes: 34 additions & 7 deletions .github/workflows/pyinstaller_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ on: [push]

jobs:
build:

runs-on: windows-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -26,13 +24,42 @@ jobs:
run: |
makensis -VERSION
makensis px100.nsi
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: px100
path: dist/*
- name: Upload installer artifact
uses: actions/upload-artifact@v2
with:
name: installer
path: Install*
release:
name: Upload Release Asset
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Download installer artifact
uses: actions/download-artifact@v2
with:
name: installer
- name: List files
run: |
ls -l
- 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: true
prerelease: true
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: Install Battery tester PX100.exe
asset_name: Battery-Tester-PX100.exe
asset_content_type: application/exe

0 comments on commit 208c899

Please sign in to comment.