Skip to content

Commit

Permalink
CI: upload build artifacts to releases.drivechain.info
Browse files Browse the repository at this point in the history
  • Loading branch information
Ash-L2L committed Apr 1, 2024
1 parent b25e56e commit 87733f1
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
branches:
- "master"
- "sidechain"
workflow_dispatch:

jobs:
build:
Expand Down Expand Up @@ -88,3 +89,32 @@ jobs:
if-no-files-found: error
# Asterisk is for matching both 'sidegeth' and 'sidegeth.exe'
path: work/build/bin/sidegeth*


upload-artifacts-to-releases-drivechain-info:
name: Upload artifacts to releases.drivechain.info
runs-on: ubuntu-latest
needs: [build]
if: github.repository_owner == 'LayerTwo-Labs'
steps:
- name: Download artifacts
uses: actions/download-artifact@v4

- name: Zip artifacts
run: |
mv binaries-Linux ethSide-latest-linux
zip -r ethSide-latest-linux.zip ethSide-latest-linux
mv binaries-macOS ethSide-latest-macos
zip -r ethSide-latest-macOS.zip ethSide-latest-macos
mv binaries-Windows ethSide-latest-windows
zip -r ethSide-latest-windows.zip ethSide-latest-windows
- name: Upload artifacts to releases.drivechain.info
uses: cross-the-world/ssh-scp-ssh-pipelines@latest
with:
host: 45.33.96.47
user: root
pass: ${{ secrets.RELEASES_SERVER_PW }}
port: 22
scp: |
'ethSide-latest-*.zip' => '/var/www/html/'

0 comments on commit 87733f1

Please sign in to comment.