Skip to content

Commit fdc6f55

Browse files
authored
Merge pull request #86 from RGLgg/passtime_cup_2
2 parents d535dc0 + e539c37 commit fdc6f55

File tree

5 files changed

+16
-2
lines changed

5 files changed

+16
-2
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,13 @@ jobs:
146146
wget -q -O tmp.zip https://git.empiresmod.com/sourcemod/Updater/-/jobs/artifacts/master/download?job=build && unzip -o tmp.zip 'addons/*' -d ../../ && rm tmp.zip
147147
working-directory: ${{ env.SOURCEMOD_PATH }}/
148148

149+
# PASS Time plugins
150+
- name: Get latest version of PASS Time Plugin
151+
run: |
152+
wget -q -O addons/sourcemod/plugins/p4sstime.smx https://github.com/blakeplusplus/p4sstime/releases/latest/download/p4sstime.smx
153+
wget -q -O tmp.zip https://github.com/blakeplusplus/p4sstime/archive/refs/heads/main.zip && first_folder=$(unzip -Z1 tmp.zip | awk -F/ '{print $1}' | head -n 1) && unzip -q tmp.zip "$first_folder/*" -d "passtime" && cd passtime/$first_folder && cp -r addons/sourcemod/gamedata ../../addons/sourcemod/ && cd ../../ && rm -rf passtime && rm tmp.zip
154+
working-directory: ${{ env.SOURCEMOD_PATH }}/
155+
149156
- name: Move compiled plugins
150157
run: |
151158
rm -rf $PLUGINS_PATH/disabled/

.github/workflows/pr.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ jobs:
6767
- name: Disable optional plugins
6868
run: |
6969
mv roundtimer_override.smx disabled/
70-
mv p4sstime.smx disabled/
7170
working-directory: ${{ env.PLUGINS_PATH }}/
7271

7372
- name: Rebuild updatefile.txt

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,13 @@ jobs:
109109
wget -q -O tmp.zip https://git.empiresmod.com/sourcemod/Updater/-/jobs/artifacts/master/download?job=build && unzip -o tmp.zip 'addons/*' -d ../../ && rm tmp.zip
110110
working-directory: ${{ env.SOURCEMOD_PATH }}/
111111

112+
# PASS Time plugins
113+
- name: Get latest version of PASS Time Plugin
114+
run: |
115+
wget -q -O addons/sourcemod/plugins/p4sstime.smx https://github.com/blakeplusplus/p4sstime/releases/latest/download/p4sstime.smx
116+
wget -q -O tmp.zip https://github.com/blakeplusplus/p4sstime/archive/refs/heads/main.zip && first_folder=$(unzip -Z1 tmp.zip | awk -F/ '{print $1}' | head -n 1) && unzip -q tmp.zip "$first_folder/*" -d "passtime" && cd passtime/$first_folder && cp -r addons/sourcemod/gamedata ../../addons/sourcemod/ && cd ../../ && rm -rf passtime && rm tmp.zip
117+
working-directory: ${{ env.SOURCEMOD_PATH }}/
118+
112119
- name: Move compiled plugins
113120
run: |
114121
rm -rf $PLUGINS_PATH/disabled/

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ README.txt
1313

1414
# ignore smx builds
1515
*.smx
16-
!p4sstime.smx
16+
#!p4sstime.smx
17+

addons/sourcemod/plugins/p4sstime.smx

-16.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)