This repository has been archived by the owner on Nov 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (58 loc) · 1.88 KB
/
ci_exe_windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Windows Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
windows:
runs-on: windows-latest
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Execute script to .exe in Windows
run: ".github/scripts/windows/build_exe_onefile.ps1"
shell: powershell -Command "& '{0}'"
- uses: actions/upload-artifact@v2
with:
name: SpeechJokey-windows-x86_64
path: dist/
# Will be enabled again once we have a first pre-release with meaningful changes
# - name: Generate Changelog
# id: changelog
# uses: mikepenz/release-changelog-builder-action@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# **Changelog:**
# ${{ steps.changelog.outputs.changelog }}
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: pre-release-${{ github.ref_name }}-${{ github.sha }}-${{ github.run_number }}
release_name: SpeechJokey Build (Windows) - ${{ github.ref_name }} @ ${{ github.sha }}
body: |
**Build Details:**
- **Branch:** ${{ github.ref_name }}
- **Commit:** ${{ github.sha }}
- **Build Number:** ${{ github.run_number }}
- **Build Date:** ${{ github.event.head_commit.timestamp }}
draft: false
prerelease: true
- name: 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: ./dist/SpeechJokey.exe
asset_name: SpeechJokey-windows-x86_64.exe
asset_content_type: application/octet-stream