Skip to content

Update export-server.yml #77

Update export-server.yml

Update export-server.yml #77

Workflow file for this run

on: [push, workflow_dispatch]
jobs:
# job id, can be anything
export_game:
runs-on: self-hosted
# Add permission for release creation. Can be made narrower according to your needs
permissions: write-all
# Job name, can be anything
name: Export Serevr
steps:
# Always include the checkout step so that
# your project is available for Godot to export
- name: checkout
uses: actions/[email protected]
- name: export game
id: export
# Use latest version (see releases for all versions)
uses: firebelley/[email protected]
with:
# Defining all the required inputs
godot_executable_download_url: https://downloads.tuxfamily.org/godotengine/4.0.2/Godot_v4.0.2-stable_linux.x86_64.zip
godot_export_templates_download_url: https://downloads.tuxfamily.org/godotengine/4.0.2/Godot_v4.0.2-stable_export_templates.tpz
relative_project_path: ./
archive_output: false
#- run: ls ${{ steps.export.outputs.build_directory }}
#- run: ls ${{ steps.export.outputs.build_directory }}/WindowsClient
#- run: ls ${{ steps.export.outputs.build_directory }}/LinuxClient
- name: Install SSH Key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY_GLOBAL }}
known_hosts: unnecessary
if_key_exists: replace
#- name: Adding Known Hosts
# run: ssh-keyscan -p 2222 -H server.ch-l.de >> ~/.ssh/known_hosts
#- name: Deploy with rsync
# run: rsync -avz -e 'ssh -p 2222' ${{ steps.export.outputs.build_directory }}/Server/* [email protected]:/opt/
#- name: executing remote ssh commands using ssh key
# uses: appleboy/[email protected]
# with:
# host: server.ch-l.de
# username: lizard
# key: ${{ secrets.SSH_KEY_GLOBAL }}
# port: 2222
# script: |
# screen -XS lizard-world quit
# screen -S lizard-world -d -m /opt/lizard-world-server.x86_64
- name: Archive windows artifacts
uses: actions/upload-artifact@v3
with:
name: windows-client
path: ${{ steps.export.outputs.build_directory }}/WindowsClient/lizard-world-client.*
- name: Archive linux artifacts
uses: actions/upload-artifact@v3
with:
name: linux-client
path: ${{ steps.export.outputs.build_directory }}/LinuxClient/lizard-world-client.*
- name: Archive server artifacts
uses: actions/upload-artifact@v3
with:
name: linux-server
path: ${{ steps.export.outputs.build_directory }}/Server/*