Skip to content

Commit

Permalink
Merge pull request #78 from jetelain/ci-release
Browse files Browse the repository at this point in the history
Generate mods release with github actions
  • Loading branch information
jetelain authored Dec 23, 2024
2 parents d85a8ea + 82b4d49 commit 8d6797d
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 2 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/release-mods.yml
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

4 changes: 2 additions & 2 deletions cTabIRL/@cTabIRL/addons/main/script_version.hpp
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

0 comments on commit 8d6797d

Please sign in to comment.