mirror of https://github.com/BUTR/workflows.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.3 KiB
YAML
53 lines
1.3 KiB
YAML
name: Release Module on Steam
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
mod_description:
|
|
required: false
|
|
type: string
|
|
default: ''
|
|
artifact_name:
|
|
required: true
|
|
type: string
|
|
|
|
jobs:
|
|
publish-on-steam:
|
|
name: Publish Module on Steam
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
|
|
- name: Setup
|
|
uses: butr/actions-common-setup@v2.0
|
|
with:
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Download Module artifact
|
|
uses: actions/download-artifact@v3
|
|
with:
|
|
name: ${{ inputs.artifact_name }}
|
|
path: ./artifact
|
|
|
|
- uses: actions/setup-node@v3.4.1
|
|
with:
|
|
node-version: 16
|
|
#cache: 'npm'
|
|
#cache-dependency-path: steam-totp/package-lock.json
|
|
|
|
- run: cd ./steam-totp && npm ci && node .\src\index.js {{ secrets.STEAM_AUTH_CODE }}
|
|
|
|
- uses: CyberAndrii/setup-steamcmd@v1
|
|
|
|
- run: |
|
|
cat << EOT > item.vdf
|
|
"workshopitem"
|
|
{
|
|
"appid" "261550"
|
|
"publishedfileid" "2859188632"
|
|
"contentfolder" "./artifact"
|
|
"changenote" "${{ steps.version.outputs.mod_description }}"
|
|
}
|
|
EOT
|
|
|
|
- run: steamcmd +login ${{ secrets.STEAM_LOGIN }} ${{ secrets.STEAM_PASSWORD }} +workshop_build_item "./item.vdf" +quit
|