Skip to content

v9.5.1 Release

v9.5.1 Release #22

Workflow file for this run

name: Upload artifacts
on:
release:
types: [published]
env:
DOTNET_VERSION: '8.x'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Download open.mp Server
run: wget https://github.com/MrDave1999/env.server/releases/download/omp-server/open.mp-win-x86.zip
- name: Unzip open.mp Server
run: unzip open.mp-win-x86.zip -d ctf-gamemode-windows
- name: Move contents of Server to root directory
run: |
mv ctf-gamemode-windows/Server/** ctf-gamemode-windows
rmdir ctf-gamemode-windows/Server
- name: Add plugins to server.cfg file
run: |
echo "" >> ctf-gamemode-windows/server.cfg
echo "plugins SampSharp streamer" >> ctf-gamemode-windows/server.cfg
- name: Build game mode
run: dotnet publish src/Host -c Release -o bin --framework=net8.0
- name: Copy artifacts
run: |
mkdir ctf-gamemode-windows/plugins ctf-gamemode-windows/filterscripts
cp -r bin ctf-gamemode-windows
cp plugins/*.dll ctf-gamemode-windows/plugins
cp filterscripts/*.amx ctf-gamemode-windows/filterscripts
cp -r scripts ctf-gamemode-windows
- name: Create .env file
run: cp .env.example .env
- name: Copy .env file
run: cp .env ctf-gamemode-windows
- name: Create compressed file
run: zip -r ctf-gamemode-windows.zip ctf-gamemode-windows
- name: Upload artifacts to release
uses: softprops/action-gh-release@v2
with:
files: ctf-gamemode-windows.zip