A GitHub action that publishes your Garry's Mod addon to the Steam Workshop.
This action has 6 parameters so far which are account-name
, account-password
, account-secret
, workshop-id
and addon-path
.
-
account-name
[required] is the Steam account name of the account the action is going to use. -
account-password
[required] is the Steam password of the account the action is going to use. -
workshop-id
[required] is the Steam handle corresponding to your workshop addon, this parameter is used to update the right addon. -
account-secret
[optional] is the Steam shared secret if the account uses 2FA. -
addon-path
[optional] lets you target which path your addon files are under.
Note: This action will only run on a Windows container because it uses gmpublish.exe.
name: CI
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
publish:
runs-on: windows-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout
uses: actions/checkout@v2
# Creates a GMA and publishes it to the Steam Workshop
- name: Publish to Steam Workshop
uses: Earu/[email protected]
with:
account-name: ${{secrets.STEAM_NAME}}
account-password: ${{secrets.STEAM_PASSWORD}}
account-password: ${{secrets.STEAM_SECRET}}
workshop-id: '1182471500'
addon-path: ${{env.GITHUB_WORKSPACE}}