Skip to content

Commit

Permalink
воркфлов
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgencheg committed Aug 20, 2024
1 parent 2234235 commit ebdb0de
Showing 1 changed file with 68 additions and 0 deletions.
68 changes: 68 additions & 0 deletions .github/workflows/publish-lostparadise.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Publish-lostparadise

concurrency:
group: publish-lostparadise

on:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/[email protected]
with:
submodules: 'recursive'

- name: Download parts
run: |
git clone ${{ secrets.HUB_SEC_TOKEN }}
mv Secrets/_PrivateResources/* Resources/
mv Secrets/_PrivateShared Content.Shared/_PrivateShared
mv Secrets/_PrivateServer Content.Server/_PrivateServer
mv Secrets/_PrivateClient Content.Client/_PrivateClient
- name: Setup .NET Core
uses: actions/[email protected]
with:
dotnet-version: 8.0.x

- name: Get Engine Tag
run: |
cd RobustToolbox
git fetch --depth=1
- name: Install dependencies
run: dotnet restore

- name: Build Packaging
run: dotnet build Content.Packaging --configuration Release --no-restore /m

- name: Package server
run: dotnet run --project Content.Packaging server --platform linux-x64 --hybrid-acz

- name: Shuffle files around
run: |
mkdir "release/${{ github.sha }}"
mv release/*.zip "release/${{ github.sha }}"
- name: Upload files to centcomm
uses: appleboy/scp-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH }}
port: ${{ secrets.PORT }}
source: "release/${{ github.sha }}"
target: "/var/www/wiki/builds_dir/builds/"
strip_components: 1

- name: Update manifest JSON
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH }}
port: ${{ secrets.PORT }}
script: pwsh /var/www/wiki/push.ps1 ${{ github.sha }}

0 comments on commit ebdb0de

Please sign in to comment.