Skip to content

Commit 304509b

Browse files
committed
Update github workflows, add nightly builds
1 parent 8e3b1a7 commit 304509b

3 files changed

Lines changed: 41 additions & 58 deletions

File tree

.github/workflows/build.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
on:
2+
push:
3+
pull_request:
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Check out code
10+
uses: actions/checkout@v4
11+
with:
12+
submodules: true
13+
14+
- name: Create Infinity Engine Mod Packages (.iemod and .zip)
15+
uses: ALIENQuake/CreateIEModZipPackage@master
16+
id: create_mod_package
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
20+
# Nightly builds
21+
- name: Upload artifacts
22+
if: "!startsWith(github.ref, 'refs/tags/')"
23+
uses: actions/upload-artifact@v4
24+
with:
25+
name: unique-artifacts
26+
path: |
27+
${{ steps.create_mod_package.outputs.PackageBaseName }}.iemod
28+
${{ steps.create_mod_package.outputs.PackageBaseName }}.zip
29+
if-no-files-found: error
30+
31+
# Tagged releases
32+
- name: Create GitHub Release
33+
if: startsWith(github.ref, 'refs/tags/')
34+
uses: softprops/action-gh-release@v1
35+
with:
36+
files: |
37+
${{ steps.create_mod_package.outputs.PackageBaseName }}.iemod
38+
${{ steps.create_mod_package.outputs.PackageBaseName }}.zip
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/poify.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616

1717
- name: Poify/Unpoify
1818
uses: BGforgeNet/msg2po@dev

.github/workflows/release.yml

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)