Git Product home page Git Product logo

gsw-action's Introduction

A GitHub action that publishes your Garry's Mod addon to the Steam Workshop.

Usage

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.

Example Action

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}}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.