-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from jetelain/ci-release
Generate mods release with github actions
- Loading branch information
Showing
2 changed files
with
47 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Mods Release | ||
|
||
on: | ||
release: | ||
types: [ "published" ] | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 9.0.x | ||
|
||
- name: Build Extension | ||
run: dotnet publish cTabIRL/cTabExtension/cTabExtension.csproj -c Release -r win-x64 -o "cTabIRL/@cTabIRL" | ||
|
||
- uses: arma-actions/hemtt@v1 | ||
name: Setup HEMTT | ||
|
||
- name: Build cTabIRL Mod | ||
run: hemtt release | ||
working-directory: cTabIRL/@cTabIRL | ||
|
||
- name: Build cTab Mod | ||
run: hemtt release | ||
working-directory: "@cTab" | ||
|
||
- uses: Shopify/upload-to-release@master | ||
with: | ||
name: ctab.zip | ||
path: "@cTab/releases/ctab-latest.zip" | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
content-type: application/zip | ||
|
||
- uses: Shopify/upload-to-release@master | ||
with: | ||
name: ctab_irl.zip | ||
path: "cTabIRL/@cTabIRL/releases/ctab_irl-latest.zip" | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
content-type: application/zip | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#define MAJOR 0 | ||
#define MINOR 4 | ||
#define MAJOR 2 | ||
#define MINOR 8 | ||
#define PATCH 0 | ||
#define BUILD 0 |