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

Commit 24070a3

Browse files
committed
Added release github actions
1 parent 5f350f8 commit 24070a3

File tree

1 file changed

+47
-1
lines changed

1 file changed

+47
-1
lines changed

.github/workflows/build_exe.yml

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Build exe
33
on:
44
push:
55
branches: [ main, dev ]
6+
tags: ['v*']
67

78
jobs:
89
exe:
@@ -79,4 +80,49 @@ jobs:
7980
if: always()
8081
with:
8182
name: cli
82-
path: 'cli.exe'
83+
path: 'cli.exe'
84+
85+
- name: Create Release
86+
id: create_release
87+
if: ${{ github.ref }} && true
88+
uses: actions/create-release@v1
89+
env:
90+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
91+
with:
92+
tag_name: ${{ github.ref }}
93+
release_name: Release ${{ github.ref }}
94+
draft: true
95+
prerelease: false
96+
97+
- name: Upload GUI Release Asset
98+
if: ${{ github.ref }} && true
99+
uses: actions/upload-release-asset@v1
100+
env:
101+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
102+
with:
103+
upload_url: ${{ steps.create_release.outputs.upload_url }}
104+
asset_path: ./gui.exe
105+
asset_name: BravePatcher_gui.exe
106+
asset_content_type: "application/octet-stream"
107+
108+
- name: Upload CLI Release Asset
109+
if: ${{ github.ref }} && true
110+
uses: actions/upload-release-asset@v1
111+
env:
112+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
113+
with:
114+
upload_url: ${{ steps.create_release.outputs.upload_url }}
115+
asset_path: ./cli.exe
116+
asset_name: BravePatcher_cli.exe
117+
asset_content_type: "application/octet-stream"
118+
119+
- name: Upload WHL Release Asset
120+
if: ${{ github.ref }} && true
121+
uses: actions/upload-release-asset@v1
122+
env:
123+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
124+
with:
125+
upload_url: ${{ steps.create_release.outputs.upload_url }}
126+
asset_path: ./dist/bravepatcher-0.1.0-py3-none-any.whl
127+
asset_name: bravepatcher-0.1.0-py3-none-any.whl
128+
asset_content_type: "application/octet-stream"

0 commit comments

Comments
 (0)