-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.18 KB
/
build-win-x64.yml
File metadata and controls
44 lines (38 loc) · 1.18 KB
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
name: Build Windows x64
on:
workflow_dispatch:
workflow_call:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Read version from version.txt
id: version
run: |
version=$(cat ./build-resources/version.txt | tr -d '\n\r')
echo "version=$version" >> $GITHUB_OUTPUT
echo "Version read from version.txt: $version"
- name: Install nsis
run: |
sudo dpkg --add-architecture i386
sudo apt-get install -y nsis nsis-doc nsis-pluginapi software-properties-common apt-transport-https
- name: Build project and hash computer
run: |
cd build-win
chmod a+x ./build.sh
./build.sh
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
tag_name: v${{ steps.version.outputs.version }}
name: Release v${{ steps.version.outputs.version }}
files: |
./build-win/unity-builder-x64.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}