Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-create a release on push #119

Merged
merged 2 commits into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Package

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

jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -36,8 +36,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 *