Skip to content

Commit

Permalink
chore: update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
rick-yao committed Nov 10, 2024
1 parent 44702b1 commit d6e4f6c
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Build and Release SourceMod Plugin
name: Build and Publish

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

jobs:
build:
Expand All @@ -13,6 +13,10 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Get current date
id: date
run: echo "DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV

- name: Setup SourceMod
run: |
wget https://sm.alliedmods.net/smdrop/1.11/sourcemod-1.11.0-git6968-linux.tar.gz
Expand All @@ -26,9 +30,11 @@ jobs:
addons/sourcemod/scripting/spcomp64 l4d2_tank_draw/scripting/l4d2_tank_draw.sp -o build/l4d2_tank_draw.smx -i ./Multi-Colors/addons/sourcemod/scripting/include -i ./Left4DHooks/sourcemod/scripting/include
addons/sourcemod/scripting/spcomp64 l4d2_tank_trigger/scripting/l4d2_tank_trigger.sp -o build/l4d2_tank_trigger.smx -i ./Multi-Colors/addons/sourcemod/scripting/include -i ./Left4DHooks/sourcemod/scripting/include
- name: Release
- name: Create Release
uses: softprops/action-gh-release@v2
with:
tag_name: release-${{ env.DATE }}
name: Release ${{ env.DATE }}
draft: false
files: |
build/*.smx
Expand Down

0 comments on commit d6e4f6c

Please sign in to comment.