Skip to content

Commit

Permalink
feat: add initial ci
Browse files Browse the repository at this point in the history
  • Loading branch information
rick-yao committed Sep 26, 2024
1 parent a49a127 commit 389847b
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build and Release SourceMod Plugin

on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup SourceMod
run: |
wget --input-file=https://sm.alliedmods.net/smdrop/${{ secrets.SOURCEMOD_VERSION }}/${{ secrets.SOURCEMOD_FILENAME }}
tar -xzf sourcemod-*.tar.gz
- name: Build plugin
run: |
mkdir -p build
addons/sourcemod/scripting/spcomp l4d2_tank_draw/scripting/l4d2_tank_draw.sp -o build/l4d2_tank_draw.smx
- name: Release
uses: softprops/action-gh-release@v2
with:
draft: false
files: |
build/*.smx
generate_release_notes: true

0 comments on commit 389847b

Please sign in to comment.