Skip to content

Commit 8ae64fa

Browse files
Auto-create release on master push (#119)
1 parent 34a511b commit 8ae64fa

3 files changed

Lines changed: 13 additions & 9 deletions

File tree

.github/workflows/package.yml

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

33
on:
44
push:
5-
schedule:
6-
- cron: '0 0 1 * *' # every month
5+
branches: master
6+
77
jobs:
88
build:
99
runs-on: ubuntu-latest
@@ -36,8 +36,9 @@ jobs:
3636
run: |
3737
bash scripts/package.sh
3838
39-
- name: Upload Artifacts
40-
uses: actions/upload-artifact@master
39+
- name: Release
40+
uses: softprops/action-gh-release@v2
4141
with:
42-
name: Randomizer-${{env.PLUGIN_VERSION}}.${{env.PLUGIN_VERSION_REVISION}}
43-
path: ./build/package
42+
files: build/Randomizer-${{ 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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ Team Fortress 2 plugin that randomizes player loadout in any imaginable combinat
44
Supports all TF2 stock gamemodes excluding Mann Vs Machine, allow servers using ConVars to randomize specific players by whatever loadouts from whatever events.
55

66
## Builds
7-
All builds can be found [here](https://github.com/FortyTwoFortyTwo/Randomizer/actions?query=workflow%3APackage+branch%3Amaster).
8-
To download latest build version, select latest package then "Artifacts" section underneath.
7+
All builds can be found in [releases](https://github.com/FortyTwoFortyTwo/Randomizer/releases) page, auto-built on every commits done in master branch.
98

109
## Requirements
1110
- SourceMod 1.11

scripts/package.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,8 @@ cp -r addons/sourcemod/plugins/randomizer.smx package/addons/sourcemod/plugins
1111
cp -r ../configs/randomizer package/addons/sourcemod/configs
1212
cp -r ../gamedata/randomizer.txt package/addons/sourcemod/gamedata
1313
cp -r ../translations package/addons/sourcemod
14-
cp -r ../LICENSE package
14+
cp -r ../LICENSE package
15+
16+
# Create ZIP file
17+
cd package
18+
zip -r ../Randomizer-$PLUGIN_VERSION.$PLUGIN_VERSION_REVISION.zip *

0 commit comments

Comments
 (0)