-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (68 loc) · 2.68 KB
/
referenceassemblies-diff-game_version_update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Publish ReferenceAssemblies-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: kohlerdominik/docker-run-action@v1
with:
image: ghcr.io/butr/referenceassemblies-diff:latest
volumes: |
${{ github.workspace }}/html:/html
${{ github.workspace }}/json:/json
${{ github.workspace }}/diff:/diff
environment: |
OLD_VERSION_FOLDER=./Stable
NEW_VERSION_FOLDER=./Beta
STABLE_VERSION=${{vars.GAME_VERSION_STABLE}}
BETA_VERSION=${{vars.GAME_VERSION_BETA}}
TOKEN=${{secrets.GITHUB_TOKEN}}
HTML_PATH=.
run: |
pwsh ./generate-diffs.ps1 -old_version_folder $OLD_VERSION_FOLDER -new_version_folder $NEW_VERSION_FOLDER -stable_version $STABLE_VERSION -beta_version $BETA_VERSION -token $TOKEN -html_path $HTML_PATH
- name: Publish Diff
uses: garygrossgarten/github-action-scp@release
with:
local: "${{ github.workspace }}/diff/"
remote: "/deploy/referenceassembliesdiffer/diff/${{secrets.SYNCED_GAME_STABLE_VERSION}}-${{secrets.SYNCED_GAME_BETA_VERSION}}/"
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
privateKey : ${{ secrets.KEY }}
concurrency: 10
verbose: false
rmRemote: true
- name: Publish Html
uses: garygrossgarten/github-action-scp@release
with:
local: "${{ github.workspace }}/html/"
remote: "/deploy/referenceassembliesdiffer/html/${{secrets.SYNCED_GAME_STABLE_VERSION}}-${{secrets.SYNCED_GAME_BETA_VERSION}}/"
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
privateKey : ${{ secrets.KEY }}
concurrency: 10
verbose: false
rmRemote: true
- name: Publish Html
uses: garygrossgarten/github-action-scp@release
with:
local: "${{ github.workspace }}/json/"
remote: "/deploy/referenceassembliesdiffer/json/${{secrets.SYNCED_GAME_STABLE_VERSION}}-${{secrets.SYNCED_GAME_BETA_VERSION}}/"
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
privateKey : ${{ secrets.KEY }}
concurrency: 10
verbose: false
rmRemote: true