-
Notifications
You must be signed in to change notification settings - Fork 4
65 lines (56 loc) · 1.62 KB
/
nightly.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
name: Build and Developmental Release
on:
push:
branches:
- '**' # Trigger on any branch push
workflow_dispatch:
jobs:
build:
name: Build x64-Release
runs-on: windows-latest
steps:
# Checkout the code
- name: Checkout Repository
uses: actions/checkout@v4
- uses: geode-sdk/build-geode-mod@main
id: build
- name: Compress Build Output
run: |
mkdir out
cp -r bin/resources out/resources
cp README.md out/about.md
cp bin/changelog.md out/
cp bin/logo.png out/
cp mod.json out/
cp build/*.dll out/
cd out
7z a -tzip rainixgd.geome3dash.geode -mx9 *
# Upload the compressed file
- name: Upload Build Artifact
uses: actions/upload-artifact@v3
with:
name: rainixgd.geome3dash.geode
path: out/rainixgd.geome3dash.geode
release:
name: Create Developmental Release
needs: build
runs-on: ubuntu-latest
steps:
# Download the compressed build artifact
- name: Download Build Artifact
uses: actions/download-artifact@v3
with:
name: rainixgd.geome3dash.geode
path: .
# Create GitHub Release
- name: Update Development Release
uses: andelf/nightly-release@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: develop
name: 'Developmental Build'
body: |
Geome3dash development release for commit ${{ github.sha }}.
files: |
./rainixgd.geome3dash.geode