-
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (45 loc) · 1.54 KB
/
main.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
name: CI
on: [push, pull_request, workflow_dispatch]
jobs:
build-and-test-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: gets ags-toolbox
run: |
curl -Lo atbx.exe https://github.com/ericoporto/agstoolbox/releases/download/0.4.9/atbx.exe
echo "${{github.workspace}}" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Install AGS
run: |
atbx install editor -q fancy_demo/
- name: Build game
run: |
atbx build fancy_demo/
- name: Export module
run: |
atbx export script fancy_demo/ fancy .
- name: Zip Game Project
run: |
Remove-Item -Recurse -Force fancy_demo/Compiled/Data
Remove-Item -Force fancy_demo/Game.agf.user
Compress-Archive -Path fancy_demo/* -Destination fancy_demo_windows.zip
- name: Upload Game and Project Artifact
uses: actions/upload-artifact@v4
with:
name: fancy_demo
path: |
fancy_demo_windows.zip
- name: Upload Module Artifact
uses: actions/upload-artifact@v4
with:
name: fancy_module
path: |
fancy.scm
- name: Create release and upload assets
if: startsWith(github.ref, 'refs/tags/v')
uses: ncipollo/release-action@v1
with:
artifacts: fancy.scm,fancy_demo_windows.zip
allowUpdates: true
omitBodyDuringUpdate: true
token: ${{ secrets.GITHUB_TOKEN }}