Skip to content

v1.16.14

v1.16.14 #93

Workflow file for this run

on:
push:
tags:
- 'v*'
name: Create Release
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: rumblefrog/[email protected]
- run: |
mkdir -p addons/sourcemod/plugins include
cp -r scripting gamedata addons/sourcemod/
curl -o include/dhooks.inc \
https://raw.githubusercontent.com/peace-maker/DHooks2/dynhooks/sourcemod_files/scripting/include/dhooks.inc
spcomp \
-i include \
addons/sourcemod/scripting/tf2-comp-fixes.sp \
-o addons/sourcemod/plugins/tf2-comp-fixes.smx
zip tf2-comp-fixes $(find addons -type f)
cp updatefile.txt addons/sourcemod/
- uses: actions/create-release@latest
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
- uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./tf2-comp-fixes.zip
asset_name: tf2-comp-fixes.zip
asset_content_type: application/zip
- id: check_prerelease
run: |
if echo '${{ github.event.ref }}' | grep -P '^refs\/tags\/v[0-9]+\.[0-9]+\.[0-9]+(?:-((?:[0-9]+|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:[0-9]+|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$'; then
echo ::set-output name=match::true
else
echo ::set-output name=match::false
fi
- uses: peaceiris/actions-gh-pages@v3
if: steps.check_prerelease.outputs.match != 'true'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: updater
publish_dir: addons/sourcemod