[editor only] Add build info too
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user