Revert "Continuous damage in enemies" #269
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
export: | |
runs-on: ubuntu-latest | |
name: Export Game | |
steps: | |
- name: checkout | |
uses: actions/[email protected] | |
- name: export game | |
id: export | |
uses: firebelley/[email protected] | |
with: | |
godot_executable_download_url: https://downloads.tuxfamily.org/godotengine/4.2.1/Godot_v4.2.1-stable_linux.x86_64.zip | |
godot_export_templates_download_url: https://downloads.tuxfamily.org/godotengine/4.2.1/Godot_v4.2.1-stable_export_templates.tpz | |
relative_project_path: ./src | |
archive_output: true | |
cache: true | |
- uses: actions/upload-artifact@v4 | |
name: Upload raw | |
with: | |
name: Raw Outputs | |
path: ${{ steps.export.outputs.build_directory }}/* | |
if-no-files-found: error | |
- uses: actions/upload-artifact@v4 | |
name: Upload archives | |
with: | |
name: Archives | |
path: ${{ steps.export.outputs.archive_directory }}/* | |
if-no-files-found: error | |
deploy-web: | |
name: Deploy Web Demo | |
environment: isiko404.dev Deployment | |
runs-on: ubuntu-latest | |
needs: export | |
steps: | |
- uses: actions/download-artifact@v4 | |
with: | |
name: Raw Outputs | |
- name: Display structure of downloaded files | |
run: ls -R | |
- name: Display structure of probably deployable files | |
run: ls -al ./Web | |
- name: Display structure of Deployable files | |
run: ls -al ${{ vars.BUILD_DIR_WEB }} | |
- name: Deploy web-demo | |
uses: easingthemes/ssh-deploy@main | |
with: | |
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_KEY }} | |
SOURCE: ${{ vars.BUILD_DIR_WEB }} | |
REMOTE_HOST: ${{ secrets.DEPLOY_HOST }} | |
REMOTE_USER: ${{ secrets.DEPLOY_USER }} | |
TARGET: ${{ vars.DEPLOY_DIR_WEB }} | |
SCRIPT_AFTER: echo $RSYNC_STDOUT | |
REMOTE_PORT: ${{ secrets.DEPLOY_PORT }} | |
deploy-downloads: | |
name: Deploy Game Downloads | |
environment: isiko404.dev Deployment | |
runs-on: ubuntu-latest | |
needs: export | |
steps: | |
- uses: actions/download-artifact@v4 | |
with: | |
name: Archives | |
- name: Display structure of downloaded files | |
run: ls -R | |
- name: Display structure of probably deployable files | |
run: ls -al ./* | |
- name: Display structure of Deployable files | |
run: ls -al ${{ vars.BUILD_DIR_DOWNLOADS }} | |
- name: Deploy web-demo | |
uses: easingthemes/ssh-deploy@main | |
with: | |
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_KEY }} | |
SOURCE: ${{ vars.BUILD_DIR_DOWNLOADS }} | |
REMOTE_HOST: ${{ secrets.DEPLOY_HOST }} | |
REMOTE_USER: ${{ secrets.DEPLOY_USER }} | |
TARGET: ${{ vars.DEPLOY_DIR_DOWNLOADS }} | |
SCRIPT_AFTER: echo $RSYNC_STDOUT | |
REMOTE_PORT: ${{ secrets.DEPLOY_PORT }} |