-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into statics-improvements
- Loading branch information
Showing
76 changed files
with
983 additions
and
407 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Release | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup HEMTT | ||
uses: arma-actions/hemtt@main | ||
- name: Setup Node.js environment | ||
uses: actions/setup-node@v4 | ||
- name: Setup Node tools | ||
run: cd tools/nodejs_tools && npm i &> /dev/null && cd ../../ | ||
- name: Set Build Version | ||
run: node tools/nodejs_tools/gitversionsetter.js | ||
- name: Run HEMTT build | ||
run: hemtt release | ||
- run: | | ||
version="${{ github.event.release.tag_name }}" | ||
mv releases/lambs-latest.zip "@LambsDanger_${version//[.]/_}.zip" | ||
- name: Update Release with Files | ||
id: create_version_release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
allowUpdates: true # Set this to false if you want to prevent updating existing releases | ||
name: ${{ github.event.release.name }} | ||
draft: ${{ github.event.release.unpublished }} | ||
prerelease: ${{ github.event.release.prerelease }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
artifacts: "./@LambsDanger_*.zip" | ||
tag: ${{ github.event.release.tag_name }} | ||
body: ${{ github.event.release.body }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Read the current contents of the mod.cpp | ||
// file from the project source | ||
let version = HEMTT_DIRECTORY | ||
.join("mod.cpp") | ||
.open_file() | ||
.read(); | ||
// Replace the placeholder version with the actual version | ||
version.replace("{version}", HEMTT.project().version().to_string_short()); | ||
// Write the new contents to the build output | ||
// create_file will overwrite the file if it exists | ||
HEMTT_OUTPUT | ||
.join("mod.cpp") | ||
.create_file() | ||
.write(version); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name = "LAMBS Danger" | ||
prefix = "lambs" | ||
author = "LAMBS Dev Team" | ||
mainprefix = "z" | ||
|
||
[version] | ||
path = "addons/main/script_version.hpp" | ||
git_hash = 0 | ||
|
||
[files] | ||
include = [ | ||
"mod.cpp", | ||
"*.paa", | ||
"LICENSE", | ||
"readme.txt", | ||
"readme.md" | ||
] | ||
|
||
[hemtt.signing] | ||
authority = "LambsDanger" | ||
|
||
[hemtt.release] | ||
folder = "lambs_danger" | ||
|
||
[hemtt.launch.default] | ||
workshop = [ | ||
"450814997", # CBA_A3's Workshop ID | ||
] | ||
|
||
parameters = [ | ||
"-world=empty", | ||
"-filePatching", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.