[editor only] Add build info too

This commit is contained in:
fgnm
2022-05-21 19:58:03 +02:00
parent f412a27129
commit 569a9a5629
+15 -1
View File
@@ -38,7 +38,7 @@ jobs:
with:
name: Linux.HyperLap2D-SNAPSHOT.deb
path: Linux.HyperLap2D-SNAPSHOT.deb
- name: Sync files with server
- name: Sync files with production server
uses: garygrossgarten/github-action-scp@release
with:
host: ${{ secrets.DEPLOY_SSH_HOST }}
@@ -47,6 +47,20 @@ jobs:
port: ${{ secrets.DEPLOY_SSH_PORT }}
local: "Linux.HyperLap2D-SNAPSHOT.deb"
remote: ${{ format('{0}/{1}', secrets.DEPLOY_SSH_TARGET_PATH, 'Linux.HyperLap2D-SNAPSHOT.deb') }}
- name: Generate build info
env:
WORKFLOW_RUN: ${{ github.run_number }}
run: |
echo "{ \"build\": $WORKFLOW_RUN }" > snapshot.json
- name: Sync build info with production server
uses: garygrossgarten/github-action-scp@release
with:
host: ${{ secrets.DEPLOY_SSH_HOST }}
username: ${{ secrets.DEPLOY_SSH_USERNAME }}
password: ${{ secrets.DEPLOY_SSH_PASSWORD }}
port: ${{ secrets.DEPLOY_SSH_PORT }}
local: "snapshot.json"
remote: ${{ format('{0}/{1}', secrets.DEPLOY_SSH_TARGET_PATH, 'snapshot.json') }}
- name: Publish SNAPSHOT artifacts
if: "!contains(github.event.head_commit.message, 'editor only')"
env: