Skip to content

Commit

Permalink
setup-steamcmd@v1 (#1)
Browse files Browse the repository at this point in the history
- Initial Release! 🎉🚀
  • Loading branch information
StephenHodgson authored Aug 8, 2024
1 parent f64ebce commit afec318
Show file tree
Hide file tree
Showing 14 changed files with 31,557 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @buildalon/buildalon
31 changes: 31 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: validate
on:
schedule:
- cron: '0 0 * * 0' # every sunday at midnight
push:
branches:
- 'main'
pull_request:
branches:
- '*'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
concurrency:
group: ${{ github.ref }}
jobs:
validate:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ macos-latest, windows-latest, ubuntu-latest ]
steps:
- uses: actions/checkout@v4
- name: buildalon/setup-steamcmd
uses: ./
- run: |
echo "STEAM_CMD: $STEAM_CMD"
echo "STEAM_DIR: $STEAM_DIR"
which steamcmd > /dev/null
steamcmd +login anonymous +help +quit
shell: bash
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
32 changes: 30 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,30 @@
# setup-steamcmd
A GitHub Action to setup the steamcmd command alias.
# Buildalon Setup SteamCmd

A GitHub Action to setup the [`steamcmd`](https://developer.valvesoftware.com/wiki/SteamCMD) command alias.

## Exported Env Vars

- `STEAM_CMD` the `steamcmd` directory location.
- `STEAM_DIR` the steam install directory location.
- `STEAM_TEMP` the temp steam directory location.

## How to use

```yaml
jobs:
validate:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macos-latest, windows-latest, ubuntu-latest ]

steps:
# download and setup the steamcmd
- uses: buildalon/setup-steamcmd@v1
# run commands
- run: |
which steamcmd
steamcmd +help +quit
```
For a full list of `steamcmd` commands see [this list](https://github.com/dgibbs64/SteamCMD-Commands-List/blob/main/steamcmd_commands.txt).
9 changes: 9 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: Buildalon Setup StreamCmd
description: A GitHub Action to setup the steamcmd command alias.
branding:
color: 'red'
icon: 'terminal'
runs:
using: 'node20'
main: 'dist/index.js'
post: 'dist/index.js'
Loading

0 comments on commit afec318

Please sign in to comment.