Skip to content

Commit e1e2ae0

Browse files
Auto-create release on master push
1 parent da56544 commit e1e2ae0

3 files changed

Lines changed: 13 additions & 9 deletions

File tree

.github/workflows/package.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ name: Package
22

33
on:
44
push:
5-
workflow_dispatch:
6-
schedule:
7-
- cron: '0 0 1 * *' # every month
5+
branches: master
6+
87
jobs:
98
build:
109
runs-on: ubuntu-latest
@@ -37,8 +36,9 @@ jobs:
3736
run: |
3837
bash scripts/package.sh
3938
40-
- name: Upload Artifacts
41-
uses: actions/upload-artifact@master
39+
- name: Release
40+
uses: softprops/action-gh-release@v2
4241
with:
43-
name: VScript-${{env.PLUGIN_VERSION}}.${{env.PLUGIN_VERSION_REVISION}}
44-
path: ./build/package
42+
files: build/VScript-${{ env.PLUGIN_VERSION }}.${{ env.PLUGIN_VERSION_REVISION }}.zip
43+
tag_name: ${{ env.PLUGIN_VERSION }}.${{ env.PLUGIN_VERSION_REVISION }}
44+
generate_release_notes: true

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
SourceMod plugin that exposes many VScript features to make use of it. Currently supports L4D2 and TF2.
44

55
## Builds
6-
All builds can be found [here](https://github.com/FortyTwoFortyTwo/VScript/actions/workflows/package.yml?query=branch%3Amain). To download latest build version, select latest package then "Artifacts" section underneath.
6+
All builds can be found in [releases](https://github.com/FortyTwoFortyTwo/VScript/releases) page, auto-built on every commits done in master branch.
77

88
## Requirements
99
- At least SourceMod version 1.12.0.6924

scripts/package.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,8 @@ mkdir -p package/addons/sourcemod/scripting
1010
cp -r addons/sourcemod/plugins/vscript.smx package/addons/sourcemod/plugins
1111
cp -r ../gamedata/vscript.txt package/addons/sourcemod/gamedata
1212
cp -r ../scripting/include package/addons/sourcemod/scripting
13-
cp -r ../LICENSE package
13+
cp -r ../LICENSE package
14+
15+
# Create ZIP file
16+
cd package
17+
zip -r ../VScript-$PLUGIN_VERSION.$PLUGIN_VERSION_REVISION.zip *

0 commit comments

Comments
 (0)