-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add CI * Move all files to cstrike/ * Add readme * Update README.md * Update CI * lil fix for SHA
- Loading branch information
Showing
31 changed files
with
245 additions
and
11 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,59 @@ | ||
<h1 align="center"> | ||
<a href="https://github.com/Mistrick/MapManagerModular"><img src="https://user-images.githubusercontent.com/18553678/128012021-a57c9845-d029-419e-9006-fa43ffff188a.png" width="500px" alt="Map Manager Modular"></a> | ||
</h1> | ||
|
||
<p align="center">Modular map management system with rich features.</p> | ||
|
||
<p align="center"> | ||
<a href="https://github.com/Mistrick/MapManagerModular/releases/latest"> | ||
<img src="https://img.shields.io/github/downloads/Mistrick/MapManagerModular/total?label=Download%40latest&style=flat-square&logo=github&logoColor=white" | ||
alt="Build status"> | ||
<a href="https://github.com/Mistrick/MapManagerModular/actions"> | ||
<img src="https://img.shields.io/github/workflow/status/Mistrick/MapManagerModular/CI/master?style=flat-square&logo=github&logoColor=white" | ||
alt="Build status"> | ||
<a href="https://github.com/Mistrick/MapManagerModular/releases"> | ||
<img src="https://img.shields.io/github/v/release/Mistrick/MapManagerModular?include_prereleases&style=flat-square&logo=github&logoColor=white" | ||
alt="Release"> | ||
<a href="https://www.amxmodx.org/downloads-new.php"> | ||
<img src="https://img.shields.io/badge/AMXModX-%3E%3D1.8.2-blue?style=flat-square" | ||
alt="AMXModX dependency"> | ||
</p> | ||
<p align="center"> | ||
<a href="#about">About</a> • | ||
<a href="#requirements">Requirements</a> • | ||
<a href="#installation">Installation</a> • | ||
<a href="#updating">Updating</a> • | ||
<a href="#downloads">Downloads</a> • | ||
<a href="#features">Features</a> • | ||
<a href="#wiki">Wiki</a> | ||
</p> | ||
|
||
--- | ||
|
||
## About | ||
- TODO | ||
|
||
## Requirements | ||
- HLDS installed; | ||
- Installed AMXModX ([`v1.9`](https://www.amxmodx.org/downloads-new.php) or [`v1.10`](https://www.amxmodx.org/downloads-new.php?branch=master)); | ||
|
||
## Installation | ||
- [Download the latest](https://github.com/Mistrick/MapManagerModular/releases/latest) stable version from the release section. | ||
- Extract the `cstrike` folder to the root folder of the HLDS server; | ||
- Make sure that all plugins are running and in the correct order, using the `amxx list` command. | ||
|
||
## Updating | ||
- Put new plugins and lang-files (`plugins/*.amxx` & `data/lang/*.txt`) into `amxmodx/` folder on the HLDS server; | ||
- Restart the server (command `restart` or change the map); | ||
- Make sure that the versions of the plugins are up to date with the command `amxx list`. | ||
|
||
## Downloads | ||
- [Release builds](https://github.com/Mistrick/MapManagerModular/releases) | ||
- [Dev builds](https://github.com/Mistrick/MapManagerModular/actions/workflows/CI.yml) | ||
|
||
## Features | ||
- TODO | ||
|
||
## Wiki | ||
Do you **need some help**? Check the _articles_ from the [wiki](https://github.com/Mistrick/MapManagerModular/wiki). |
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,44 @@ | ||
name-template: "Release v$RESOLVED_VERSION" | ||
tag-template: "v$RESOLVED_VERSION" | ||
categories: | ||
- title: "🚀 Features" | ||
labels: | ||
- "feature" | ||
- "enhancement" | ||
- title: "🐛 Bug Fixes" | ||
labels: | ||
- "fix" | ||
- "bugfix" | ||
- "bug" | ||
- title: "🧰 Maintenance" | ||
labels: | ||
- "maintenance" | ||
change-template: "- $TITLE @$AUTHOR (#$NUMBER)" | ||
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks. | ||
version-resolver: | ||
major: | ||
labels: | ||
- "major" | ||
- "breaking" | ||
minor: | ||
labels: | ||
- "minor" | ||
- "feature" | ||
patch: | ||
labels: | ||
- "patch" | ||
- "bug" | ||
- "maintenance" | ||
- "docs" | ||
- "dependencies" | ||
- "security" | ||
default: patch | ||
prerelease: true | ||
template: | | ||
## What's Changed | ||
$CHANGES | ||
### Contributors | ||
$CONTRIBUTORS |
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,112 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
paths-ignore: | ||
- "**.md" | ||
|
||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
name: "Build" | ||
runs-on: ubuntu-latest | ||
outputs: | ||
sha: ${{ steps.declare_sha.outputs.sha }} | ||
semver: ${{ steps.declare_sha.outputs.semver }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Parse SemVer string (release) | ||
id: semver_parser | ||
if: | | ||
github.event_name == 'release' && | ||
github.event.action == 'published' && | ||
startsWith(github.ref, 'refs/tags/') | ||
uses: booxmedialtd/ws-action-parse-semver@v1 | ||
with: | ||
input_string: ${{ github.ref }} | ||
version_extractor_regex: '\/v(.*)$' | ||
|
||
- name: Declare SHA & package name | ||
id: declare_sha | ||
shell: bash | ||
run: | | ||
SHA=$(git rev-parse --short HEAD) | ||
echo "SHA_SHORT=${SHA}" >> $GITHUB_ENV | ||
echo "::set-output name=sha::$SHA" | ||
echo "::set-output name=semver::${{ steps.semver_parser.outputs.fullversion }}" | ||
- name: Update versions for plugins | ||
working-directory: cstrike/addons/amxmodx/scripting/include/ | ||
env: | ||
SHA_SHORT: "${{ env.SHA_SHORT }}" | ||
FILE: map_manager_consts.inc | ||
run: sed -i "s|VERSION_HASH \"\"|VERSION_HASH \"-$SHA_SHORT\"|g" $FILE | ||
|
||
- name: Setup AMXXPawn Compiler | ||
uses: wopox1337/setup-amxxpawn@v1 | ||
with: | ||
version: "1.10.5428" | ||
|
||
- name: Compile plugins | ||
working-directory: cstrike/addons/amxmodx/scripting/ | ||
run: | | ||
for sourcefile in *.sma; | ||
do | ||
amxxfile="`echo $sourcefile | sed -e 's/\.sma$/.amxx/'`" | ||
output_path="../plugins/$amxxfile" | ||
mkdir -p $(dirname $output_path) | ||
echo -n "Compiling $sourcefile ... " | ||
amxxpc $sourcefile -i"include" -o"$output_path" | ||
done | ||
- name: Move files | ||
run: | | ||
mkdir publish | ||
mv cstrike/ publish/ | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: MapManager-${{ env.SHA_SHORT }}-dev | ||
path: publish/* | ||
|
||
publish: | ||
name: "Publish" | ||
runs-on: ubuntu-latest | ||
needs: [build] | ||
if: | | ||
github.event_name == 'release' && | ||
github.event.action == 'published' && | ||
startsWith(github.ref, 'refs/tags/') | ||
steps: | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: MapManager-${{needs.build.outputs.sha}}-dev | ||
|
||
- name: Packaging binaries | ||
id: packaging | ||
run: 7z a -mm=Deflate -mfb=258 -mpass=15 -r MapManager-v${{needs.build.outputs.semver}}.zip cstrike/ | ||
|
||
- name: Publish artifacts | ||
uses: softprops/action-gh-release@v1 | ||
id: publish-job | ||
if: | | ||
startsWith(github.ref, 'refs/tags/') && | ||
steps.packaging.outcome == 'success' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
files: | | ||
*.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,16 @@ | ||
name: Release Drafter | ||
|
||
on: | ||
pull_request: | ||
types: [closed] | ||
|
||
jobs: | ||
update_release_draft: | ||
runs-on: ubuntu-latest | ||
if: github.event.pull_request.merged == true | ||
steps: | ||
- uses: release-drafter/release-drafter@v5 | ||
with: | ||
config-name: release-drafter.yml | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
...s/amxmodx/configs/plugins-map_manager.ini → ...s/amxmodx/configs/plugins-map_manager.ini
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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
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
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
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.