Skip to content

Commit 11925b4

Browse files
committed
Rewrited and improved >:3
1 parent a197500 commit 11925b4

File tree

7 files changed

+357
-220
lines changed

7 files changed

+357
-220
lines changed

.gitattributes

Lines changed: 0 additions & 2 deletions
This file was deleted.

.github/workflows/yue_release.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Create Yuescript Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Change directory
16+
run: cd $GITHUB_WORKSPACE
17+
18+
- name: Remove unused files and folders
19+
run: |
20+
rm .gitignore
21+
rm -rf .github
22+
23+
- name: Create VERSION file
24+
run: echo -e ${{ github.ref_name }} > VERSION
25+
26+
- name: Download Yuescript and unzip yue
27+
run: |
28+
wget https://github.com/pigpigyyy/Yuescript/releases/download/v0.21.8/yue-linux-x86_64.zip
29+
unzip yue-linux-x86_64.zip
30+
rm yue-linux-x86_64.zip
31+
32+
- name: Build .lua and remove .yue
33+
run: |
34+
./yue ./
35+
rm yue
36+
find . -type f -name '*.yue' -delete
37+
38+
- name: Push to lua branch
39+
run: |
40+
git config user.name github-actions
41+
git config user.email [email protected]
42+
git add .
43+
git commit -m "Release build: $(cat VERSION)"
44+
git push -f origin HEAD:lua
45+
46+
- name: Remove .git dir
47+
run: rm -rf .git
48+
49+
- name: Create subdirectory
50+
run: mkdir ${{ github.event.repository.name }}
51+
52+
- name: Move files into sub directory
53+
run: ls | grep -v ${{ github.event.repository.name }} | xargs mv -t ${{ github.event.repository.name }}
54+
55+
- name: Create Release Asset
56+
run: zip -r9 ${{ github.event.repository.name }}.zip .
57+
58+
- name: Publish Release
59+
uses: softprops/action-gh-release@v1
60+
id: create_release
61+
with:
62+
name: Release ${{ github.ref_name }}
63+
draft: false
64+
prerelease: false
65+
generate_release_notes: true
66+
files: |
67+
./${{ github.event.repository.name }}.zip

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.lua

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 PrikolMen
3+
Copyright (c) 2024 Unknown Developer
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
# Improved Network Library
2-
2+
A faster and more performance version of the Garry's Mod `net` library with additional cool features.
3+
4+
### Basic Changes
5+
- `net.Receive` - has an additional third optional argument `string` "identifier" used for multiple receive callbacks.
6+
- `net.Start` - automatically creates network strings on the server without using `util.AddNetworkString`.
7+
- `net.StartX` - default `net.Start`.

lua/includes/extensions/net.lua

Lines changed: 0 additions & 216 deletions
This file was deleted.

0 commit comments

Comments
 (0)