Skip to content
This repository has been archived by the owner on Oct 5, 2022. It is now read-only.

Commit

Permalink
Added release github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
maxisoft committed Feb 23, 2021
1 parent 5f350f8 commit 24070a3
Showing 1 changed file with 47 additions and 1 deletion.
48 changes: 47 additions & 1 deletion .github/workflows/build_exe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Build exe
on:
push:
branches: [ main, dev ]
tags: ['v*']

jobs:
exe:
Expand Down Expand Up @@ -79,4 +80,49 @@ jobs:
if: always()
with:
name: cli
path: 'cli.exe'
path: 'cli.exe'

- name: Create Release
id: create_release
if: ${{ github.ref }} && true
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: true
prerelease: false

- name: Upload GUI Release Asset
if: ${{ github.ref }} && true
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./gui.exe
asset_name: BravePatcher_gui.exe
asset_content_type: "application/octet-stream"

- name: Upload CLI Release Asset
if: ${{ github.ref }} && true
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./cli.exe
asset_name: BravePatcher_cli.exe
asset_content_type: "application/octet-stream"

- name: Upload WHL Release Asset
if: ${{ github.ref }} && true
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/bravepatcher-0.1.0-py3-none-any.whl
asset_name: bravepatcher-0.1.0-py3-none-any.whl
asset_content_type: "application/octet-stream"

0 comments on commit 24070a3

Please sign in to comment.