Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate mods release with github actions #78

Merged
merged 4 commits into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading