-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into soldier-and-infantry-rewrite
- Loading branch information
Showing
28 changed files
with
894 additions
and
313 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,39 @@ | ||
name: Build | ||
name: Build and upload artifacts | ||
|
||
on: | ||
release: | ||
types: [ published ] | ||
push: | ||
branches: | ||
- main | ||
pull_request_target: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
name: Build | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup HEMTT | ||
uses: arma-actions/hemtt@v1 | ||
- name: Run HEMTT build | ||
run: ./tools/deploy.sh ${{ github.ref_name }} | ||
- name: Upload release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
tag: ${{ github.ref_name }} | ||
file: release/7CavAddon_${{ github.ref_name }}-hemtt.zip | ||
overwrite: true | ||
- name: Checkout the source code | ||
uses: actions/checkout@v4 | ||
- name: Setup HEMTT | ||
uses: arma-actions/hemtt@v1 | ||
- name: Checkout pull request | ||
uses: actions/checkout@v4 | ||
if: ${{ github.event_name == 'pull_request_target' }} | ||
with: | ||
path: pullrequest | ||
ref: 'refs/pull/${{ github.event.number }}/merge' | ||
- name: Replace addons with pull request addons | ||
if: ${{ github.event_name == 'pull_request_target' }} | ||
run: | | ||
rm -r addons\ | ||
rm -r include\ | ||
xcopy /e /h /q pullrequest\addons addons\ | ||
xcopy /e /h /q pullrequest\include include\ | ||
- name: Run HEMTT build | ||
run: hemtt build | ||
- name: Rename build folder | ||
run: mv .hemttout/build .hemttout/@cav | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: cav-${{ github.sha }} | ||
path: .hemttout/@* |
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,25 @@ | ||
name: Deploy Release | ||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
release: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout the source code | ||
uses: actions/checkout@v4 | ||
- name: Setup HEMTT | ||
uses: arma-actions/hemtt@v1 | ||
- name: Run HEMTT release | ||
run: | | ||
.\tools\deploy-setVersion.ps1 | ||
hemtt release | ||
Rename-Item release\cav-latest.zip 7CavAddon-${{github.ref_name}}.zip | ||
- name: Upload release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
tag: ${{ github.ref }} | ||
asset_name: 7CavAddon-${{github.ref_name}}.zip | ||
file: release/7CavAddon-${{github.ref_name}}.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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Publish | ||
run-name: Publishing ${{github.ref_name}} to ${{ inputs.environment }} | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
environment: | ||
description: "Selected deploy environment" | ||
required: true | ||
default: "dev" | ||
type: choice | ||
options: | ||
- dev | ||
- live | ||
jobs: | ||
publish: | ||
name: Publish to steam workshop | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout the source code | ||
uses: actions/checkout@v4 | ||
- name: Setup HEMTT | ||
uses: arma-actions/hemtt@v1 | ||
- name: Setup steamcmd | ||
uses: CyberAndrii/setup-steamcmd@v1 | ||
|
||
- name: Obtaining release | ||
if: ${{ inputs.environment == 'live' }} | ||
run: | | ||
.\tools\deploy-getRelease.ps1 ${{github.ref_name}} | ||
Get-ChildItem -Path . -ErrorAction SilentlyContinue | ||
- name: Deploy release build to workshop | ||
if: ${{ inputs.environment == 'live' }} | ||
run: | | ||
Write-Host "Yey i did it!" | ||
env: | ||
ENVIRONMENT: ${{ inputs.environment }} | ||
|
||
- name: Run HEMTT build | ||
if: ${{ inputs.environment == 'dev' }} | ||
run: | | ||
hemtt build | ||
env: | ||
ENVIRONMENT: ${{ inputs.environment }} | ||
- name: Deploy dev build to workshop | ||
if: ${{ inputs.environment == 'dev' }} | ||
run: | | ||
steamcmd.exe +login $env:STEAM_USERNAME $env:STEAM_PASSWORD +workshop_build_item resources\dev-payload.vdf +quit | ||
env: | ||
ENVIRONMENT: ${{ inputs.environment }} | ||
|
Binary file not shown.
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 was deleted.
Oops, something went wrong.
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,4 @@ | ||
[h1]7th Cavalry Gaming Community Addon Development Build[/h1] | ||
This is the development and experimental build of the 7th Cavalry Gaming Community Addon or 7CavAddon for short. This build contain experimental features and or items and is not recomended to be used unless you know what your doing. | ||
|
||
To get the regular build go [url=https://steamcommunity.com/sharedfiles/filedetails/?id=3298466460]here[/url]. |
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,10 @@ | ||
"workshopitem" | ||
{ | ||
"appid" "107410" | ||
"publishedfileid" "3298481411" | ||
"contentfolder" "D:\\a\\7CavAddon\\7CavAddon\\.hemttout\\build" | ||
"previewfile" "D:\\a\\7CavAddon\\7CavAddon\\resources\\steam_preview-dev.jpg" | ||
"title" "7CavAddon DevBuild [7CAV]" | ||
"description" "" | ||
"changenote" "" | ||
} |
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.