Use workshop

This commit is contained in:
Brandon Sturgeon 2023-12-16 06:43:24 -08:00
parent 48f59eecc1
commit 404af2e41c
No known key found for this signature in database
GPG Key ID: D2B85AB23C6D80C2
3 changed files with 36 additions and 2 deletions

35
.github/workflows/deploy.yml vendored Normal file
View File

@ -0,0 +1,35 @@
name: Deploy to Workshop
on:
workflow_dispatch:
inputs:
changelog:
type: string
required: false
default: "Update to latest Git commit"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
path: project
- name: Remove Non-content
run: |
rm -rf $GITHUB_WORKSPACE/project/.git*
rm -fv $GITHUB_WORKSPACE/project/LICENSE*
rm -fv $GITHUB_WORKSPACE/project/README*
- uses: CFC-Servers/gmod-upload@master
with:
id: 3114955082
changelog: ${{ inputs.changelog }}
title: CFC ULX Commands
type: ServerContent
tag1: fun
env:
STEAM_USERNAME: ${{ secrets.WORKSHOP_UPLOADER_USERNAME }}
STEAM_PASSWORD: ${{ secrets.WORKSHOP_UPLOADER_PASSWORD }}

View File

@ -0,0 +1 @@
resource.AddWorkshop( "3114955082" )

View File

@ -2,8 +2,6 @@ AddCSLuaFile( "cl_init.lua" ) -- Make sure clientside
AddCSLuaFile( "shared.lua" ) -- and shared scripts are sent.
include( "shared.lua" )
resource.AddFile( "materials/hud/killicons/trainfucked.vmt" )
local IsValid = IsValid
function ENT:Initialize()