Skip to content

Redo patches to be more robust (#117) #293

Redo patches to be more robust (#117)

Redo patches to be more robust (#117) #293

Workflow file for this run

name: Package
on:
push:
branches: master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Environments
run: |
echo "SM_VERSION=1.11" >> $GITHUB_ENV
echo "PLUGIN_VERSION_REVISION<<EOF" >> $GITHUB_ENV
git rev-list --count HEAD >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
- name: Install
run: |
bash scripts/install.sh
- name: Set Version
run: |
bash scripts/version.sh
- name: Compile
run: |
cd build/addons/sourcemod/scripting
./spcomp randomizer.sp -o ../plugins/randomizer.smx
- name: Package
run: |
bash scripts/package.sh
- name: Release
uses: softprops/action-gh-release@v2
with:
files: build/Randomizer-${{ env.PLUGIN_VERSION }}.${{ env.PLUGIN_VERSION_REVISION }}.zip
tag_name: ${{ env.PLUGIN_VERSION }}.${{ env.PLUGIN_VERSION_REVISION }}
generate_release_notes: true