Skip to content

Commit

Permalink
test of ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Apfelwurm committed Nov 2, 2023
1 parent 9674e10 commit 76b9421
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/test_and_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,20 +108,20 @@ jobs:
- name: copy package content
run: cp -rf PugSharp/bin/Debug/net7.0/publish/* packagebuild/addons/counterstrikesharp/plugins/PugSharp
- name: build package
run: zip -r PugSharp_${PUGSHARPNETVER}.zip packagebuild/addons
run: zip -r PugSharp_$PUGSHARPNETVER.zip packagebuild/addons
- name: replace version variable in meta files
run: sed -i 's|%%VERSION%%|${PUGSHARPNETVER}|g' ./release.json;
run: sed -i "s|%%VERSION%%|$PUGSHARPNETVER|g" ./release.json;
- name: replace CounterStrikeSharpVersion variable in meta files
run: sed -i 's|%%COUNTERSTRIKESHARPVERSION%%|0.0.1|g' ./release.json;
run: sed -i "s|%%COUNTERSTRIKESHARPVERSION%%|0.0.1|g" ./release.json;
- name: replace CS2VERSION variable in meta files
run: sed -i 's|%%CS2VERSION%%|1.39.6.5/13965 9842|g' ./release.json;
run: sed -i "s|%%CS2VERSION%%|1.39.6.5/13965 9842|g" ./release.json;
- name: Release
if: ${{ (startsWith(github.ref, 'refs/tags/v')) && !(contains(github.ref, '-beta')) }}
uses: softprops/action-gh-release@v1
with:
files: |
./release.json
./PugSharp_${PUGSHARPNETVER}.zip
./PugSharp_$PUGSHARPNETVER.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: pre Release
Expand All @@ -131,7 +131,7 @@ jobs:
prerelease: true
files: |
./release.json
./PugSharp_${PUGSHARPNETVER}.zip
./PugSharp_$PUGSHARPNETVER.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: upload pre - pre release
Expand All @@ -140,5 +140,5 @@ jobs:
name: latest_pre_pre
path: |
./release.json
./PugSharp_${PUGSHARPNETVER}.zip
./PugSharp_$PUGSHARPNETVER.zip
retention-days: 10
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
currentDir = $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
userId = $(shell id -u)
groupId = $(shell id -g)


build-and-copy: build copy



build:
dotnet publish -c debug

init-csserver:


copy:
rm PugSharp/bin/Debug/net7.0/publish/CounterStrikeSharp.API.dll
cp -rf PugSharp/bin/Debug/net7.0/publish/* /home/volza/temp/cs2/cs2-data/game/csgo/addons/counterstrikesharp/plugins/PugSharp
Expand Down

0 comments on commit 76b9421

Please sign in to comment.