chore: remove sample cfg #71
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
name: Build and Publish | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Get current date and time | |
id: datetime | |
run: | | |
echo "DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV | |
echo "DATETIME=$(date +'%Y-%m-%d-%H-%M-%S')" >> $GITHUB_ENV | |
- name: Cache SourceMod dependencies | |
id: cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
sourcemod-* | |
key: ${{ runner.os }}-sourcemod-${{ hashFiles('**/sourcemod-*') }} | |
restore-keys: | | |
${{ runner.os }}-sourcemod- | |
- name: Download Sourcemod | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: | | |
wget https://sm.alliedmods.net/smdrop/1.11/sourcemod-1.11.0-git6968-linux.tar.gz | |
- name: Setup SourceMod | |
run: | | |
tar -xzf sourcemod-*.tar.gz | |
git clone https://github.com/Bara/Multi-Colors.git | |
git clone https://github.com/SilvDev/Left4DHooks.git | |
- name: Build plugin | |
run: | | |
mkdir -p build | |
addons/sourcemod/scripting/spcomp64 l4d2_tank_draw/scripting/l4d2_tank_draw.sp -o build/l4d2_tank_draw.smx -i ./Multi-Colors/addons/sourcemod/scripting/include -i ./Left4DHooks/sourcemod/scripting/include | |
addons/sourcemod/scripting/spcomp64 l4d2_tank_trigger/scripting/l4d2_tank_trigger.sp -o build/l4d2_tank_trigger.smx -i ./Multi-Colors/addons/sourcemod/scripting/include -i ./Left4DHooks/sourcemod/scripting/include | |
- name: Create Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
tag_name: release-${{ env.DATETIME }} | |
name: Release ${{ env.DATE }} (${{ github.sha }}) | |
draft: false | |
files: | | |
build/*.smx | |
l4d2_*/translations/*.txt | |
generate_release_notes: true | |
token: ${{ secrets.CUSTOM_GITHUB_TOKEN }} | |
body: | | |
Release created at: ${{ env.DATETIME }} | |
Commit: ${{ github.sha }} |