-
Notifications
You must be signed in to change notification settings - Fork 4
37 lines (34 loc) · 1.04 KB
/
build_and_release.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
name: build and release
on:
workflow_dispatch:
release:
types: [ created ]
permissions:
contents: write
jobs:
build:
name: Export Lunabase Windows
runs-on: windows-latest
steps:
- uses: dtolnay/rust-toolchain@stable
- uses: davidB/rust-cargo-make@v1
- uses: actions/checkout@v3
- name: Build Lunabase Lib
run: cargo make build_lunabase
- name: Setup Godot
uses: lihop/setup-godot@v2
with:
version: 4.3-stable
export-templates: true
- name: Create Export Directory
run: mkdir godot/lunabase/lunabase
- name: Export Lunabase Windows
run: godot --headless --export-release "Windows Desktop" lunabase/Lunabase.exe
working-directory: godot/lunabase
- name: Archive Lunabase Windows
run: 7z a -tzip lunabase_windows.zip ./godot/lunabase/lunabase/*
- name: Release binary and SHA-256 checksum to GitHub
uses: softprops/action-gh-release@v1
with:
files: |
./lunabase_windows.zip