Skip to content

Commit

Permalink
Auto-create a release on push
Browse files Browse the repository at this point in the history
  • Loading branch information
FortyTwoFortyTwo committed Apr 23, 2024
1 parent 34a511b commit 7ae4dca
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: Package

on:
push:
schedule:
- cron: '0 0 1 * *' # every month

jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -36,8 +35,9 @@ jobs:
run: |
bash scripts/package.sh
- name: Upload Artifacts
uses: actions/upload-artifact@master
- name: Release
uses: softprops/action-gh-release@v2
with:
name: Randomizer-${{env.PLUGIN_VERSION}}.${{env.PLUGIN_VERSION_REVISION}}
path: ./build/package
files: build/Randomizer-${{ env.PLUGIN_VERSION }}.${{ env.PLUGIN_VERSION_REVISION }}.zip
tag_name: ${{ env.PLUGIN_VERSION }}.${{ env.PLUGIN_VERSION_REVISION }}
generate_release_notes: true
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ Team Fortress 2 plugin that randomizes player loadout in any imaginable combinat
Supports all TF2 stock gamemodes excluding Mann Vs Machine, allow servers using ConVars to randomize specific players by whatever loadouts from whatever events.

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

## Requirements
- SourceMod 1.11
Expand Down
6 changes: 5 additions & 1 deletion scripts/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,8 @@ cp -r addons/sourcemod/plugins/randomizer.smx package/addons/sourcemod/plugins
cp -r ../configs/randomizer package/addons/sourcemod/configs
cp -r ../gamedata/randomizer.txt package/addons/sourcemod/gamedata
cp -r ../translations package/addons/sourcemod
cp -r ../LICENSE package
cp -r ../LICENSE package

# Create ZIP file
cd package
zip -r ../Randomizer-$PLUGIN_VERSION.$PLUGIN_VERSION_REVISION.zip *

0 comments on commit 7ae4dca

Please sign in to comment.