Skip to content

Commit

Permalink
Rewrited and improved >:3
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown-gd committed Feb 19, 2024
1 parent a197500 commit 11925b4
Show file tree
Hide file tree
Showing 7 changed files with 357 additions and 220 deletions.
2 changes: 0 additions & 2 deletions .gitattributes

This file was deleted.

67 changes: 67 additions & 0 deletions .github/workflows/yue_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Create Yuescript Release

on:
push:
tags:
- "*"

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Change directory
run: cd $GITHUB_WORKSPACE

- name: Remove unused files and folders
run: |
rm .gitignore
rm -rf .github
- name: Create VERSION file
run: echo -e ${{ github.ref_name }} > VERSION

- name: Download Yuescript and unzip yue
run: |
wget https://github.com/pigpigyyy/Yuescript/releases/download/v0.21.8/yue-linux-x86_64.zip
unzip yue-linux-x86_64.zip
rm yue-linux-x86_64.zip
- name: Build .lua and remove .yue
run: |
./yue ./
rm yue
find . -type f -name '*.yue' -delete
- name: Push to lua branch
run: |
git config user.name github-actions
git config user.email github-actions@github.com
git add .
git commit -m "Release build: $(cat VERSION)"
git push -f origin HEAD:lua
- name: Remove .git dir
run: rm -rf .git

- name: Create subdirectory
run: mkdir ${{ github.event.repository.name }}

- name: Move files into sub directory
run: ls | grep -v ${{ github.event.repository.name }} | xargs mv -t ${{ github.event.repository.name }}

- name: Create Release Asset
run: zip -r9 ${{ github.event.repository.name }}.zip .

- name: Publish Release
uses: softprops/action-gh-release@v1
id: create_release
with:
name: Release ${{ github.ref_name }}
draft: false
prerelease: false
generate_release_notes: true
files: |
./${{ github.event.repository.name }}.zip
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.lua
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 PrikolMen
Copyright (c) 2024 Unknown Developer

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
# Improved Network Library

A faster and more performance version of the Garry's Mod `net` library with additional cool features.

### Basic Changes
- `net.Receive` - has an additional third optional argument `string` "identifier" used for multiple receive callbacks.
- `net.Start` - automatically creates network strings on the server without using `util.AddNetworkString`.
- `net.StartX` - default `net.Start`.
216 changes: 0 additions & 216 deletions lua/includes/extensions/net.lua

This file was deleted.

Loading

0 comments on commit 11925b4

Please sign in to comment.