Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Rename CI artifacts, upload to releases.drivechain.info #9

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 32 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
branches:
- "master"
workflow_dispatch:

jobs:
build-linux:
Expand Down Expand Up @@ -36,9 +37,18 @@ jobs:

- run: make -j4

- name: 'Set environment variables: version number'
run: |
MAINCHAIN_VERSION=$(\
src/drivechaind -version | \
grep 'Drivechain Daemon version v' | \
awk '{print $4}' | \
cut -c 2- | cut -d'-' -f1)
echo "MAINCHAIN_VERSION=$MAINCHAIN_VERSION" >> "$GITHUB_ENV"

- uses: actions/upload-artifact@v4
with:
name: binaries-Linux
name: mainchain-${{ env.OUTPUT_FILENAME }}-x86_64-unknown-linux-gnu
if-no-files-found: error
path: |
src/drivechaind
Expand Down Expand Up @@ -133,4 +143,24 @@ jobs:
path: |
src/drivechaind
src/drivechain-cli
src/qt/drivechain-qt
src/qt/drivechain-qt

upload-artifacts-to-releases-drivechain-info:
name: Upload artifacts to releases.drivechain.info
runs-on: ubuntu-latest
needs: [build-linux, build-macos, build-windows]
steps:
- name: Download artifacts
uses: actions/download-artifact@v4

- 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: |
'mainchain-*-x86_64-apple-darwin11' => '/var/www/html/L1-Mainchain-latest-x86_64-apple-darwin'
'mainchain-*-x86_64-w64-mingw32' => '/var/www/html/L1-Mainchain-latest-x86_64-w64-mingw32'
'mainchain-*-x86_64-unknown-linux-gnu' => '/var/www/html/L1-Mainchain-latest-x86_64-unknown-linux-gnu'
Loading