Skip to content

Publish Source-Diff on Game Update #47

Publish Source-Diff on Game Update

Publish Source-Diff on Game Update #47

name: Publish Source-Diff on Game Update
on:
repository_dispatch:
types: [game_version_update]
workflow_dispatch:
env:
# Disable the .NET logo in the console output.
DOTNET_NOLOGO: true
# Disable the .NET first time experience to skip caching NuGet packages and speed up the build.
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
# Disable sending .NET CLI telemetry to Microsoft.
DOTNET_CLI_TELEMETRY_OPTOUT: true
jobs:
generate:
name: Workflow
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- uses: docker/login-action@v1
with:
registry: ghcr.io
username: BUTR
password: ${{ secrets.TOKEN_GPR }}
- uses: kohlerdominik/docker-run-action@v1
with:
image: ghcr.io/butr/source-diff:latest
volumes: |
${{ github.workspace }}/html:/html
environment: |
STEAM_LOGIN=${{secrets.STEAM_LOGIN}}
STEAM_PASSWORD=${{secrets.STEAM_PASSWORD}}
STABLE_VERSION=${{secrets.SYNCED_GAME_STABLE_VERSION}}
BETA_VERSION=${{secrets.SYNCED_GAME_BETA_VERSION}}
HTML_PATH=.
run: |
dotnet script ./main.csx $STABLE_VERSION $BETA_VERSION $STEAM_LOGIN $STEAM_PASSWORD $HTML_PATH
- name: Publish
uses: garygrossgarten/github-action-scp@release
with:
local: "${{ github.workspace }}/html/"
remote: "/deploy/assemblydiffer/www/${{secrets.SYNCED_GAME_STABLE_VERSION}}-${{secrets.SYNCED_GAME_BETA_VERSION}}/"
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
privateKey : ${{ secrets.KEY }}
concurrency: 20
verbose: false
atomicPut: true
rmRemote: true