vers bump for cicd -> 3.0.7 #15
Workflow file for this run
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: StAC Autobuild | |
# modified from https://github.com/nosoop/NinjaBuild-SMPlugin/blob/master/contrib/github-workflow/build-on-version-tag-push.yml | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
run: | |
name: Run action | |
runs-on: ubuntu-latest | |
# skip build on '[ci skip]' | |
if: "!contains(github.event.head_commit.message, '[ci skip]')" | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Setup SourcePawn Compiler | |
uses: rumblefrog/setup-sp@master | |
with: | |
version: "1.11.x" | |
- name: Compile plugins | |
run: | | |
pwd | |
spcomp -i"./addons/sourcemod/scripting/include/" addons/sourcemod/scripting/mge.sp -o ./addons/sourcemod/plugins/mge.smx | |
ls -la | |
- name: Download maps that are too large to put on github | |
run: | | |
cd maps | |
wget "https://sappho.io/files/tf/maps/mge_chillypunch_final4_fix2.bsp" || exit 1 | |
echo "eae52bc16d6cb872938e67b4fc9b845c9f227e5d444614254465fe6530480a0e mge_chillypunch_final4_fix2.bsp" | sha256sum -c || exit 2 | |
- name: Zip packages | |
run: | | |
mkdir build | |
7za a -r build/mge.zip addons/ maps/ | |
ls -la | |
pwd | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
./build/mge.zip | |
fail_on_unmatched_files: true | |
generate_release_notes: true | |
# if: contains(github.ref, 'beta') | |
# prerelease: true |