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

Commit

Permalink
Merge pull request #10 from Ash-L2L/master
Browse files Browse the repository at this point in the history
Zip files before uploading to releases.drivechain.info
  • Loading branch information
Ash-L2L authored Mar 15, 2024
2 parents cc44173 + a450355 commit 044235d
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,17 @@ jobs:
MAINCHAIN_VERSION=$(grep -oP "(?<=^PACKAGE_VERSION=').+(?='$)" configure)
echo "MAINCHAIN_VERSION=$MAINCHAIN_VERSION" >> "$GITHUB_ENV"
- name: move qt binary before uploading artifacts
run: mv src/qt/drivechain-qt src/drivechain-qt

- uses: actions/upload-artifact@v4
with:
name: mainchain-${{ env.MAINCHAIN_VERSION }}-x86_64-unknown-linux-gnu
if-no-files-found: error
path: |
src/drivechaind
src/drivechain-cli
src/qt/drivechain-qt
src/drivechain-qt
build-windows:
Expand Down Expand Up @@ -98,14 +101,17 @@ jobs:
MAINCHAIN_VERSION=$(grep -oP "(?<=^PACKAGE_VERSION=').+(?='$)" configure)
echo "MAINCHAIN_VERSION=$MAINCHAIN_VERSION" >> "$GITHUB_ENV"
- name: move qt binary before uploading artifacts
run: mv src/qt/drivechain-qt.exe src/drivechain-qt.exe

- uses: actions/upload-artifact@v4
with:
name: mainchain-${{ env.MAINCHAIN_VERSION }}-x86_64-w64-mingw32
if-no-files-found: error
path: |
src/drivechaind.exe
src/drivechain-cli.exe
src/qt/drivechain-qt.exe
src/drivechain-qt.exe
build-macos:
name: Build macOS binaries
Expand Down Expand Up @@ -142,23 +148,36 @@ jobs:
MAINCHAIN_VERSION=$(grep -oP "(?<=^PACKAGE_VERSION=').+(?='$)" configure)
echo "MAINCHAIN_VERSION=$MAINCHAIN_VERSION" >> "$GITHUB_ENV"
- name: move qt binary before uploading artifacts
run: mv src/qt/drivechain-qt src/drivechain-qt

- uses: actions/upload-artifact@v4
with:
name: mainchain-${{ env.MAINCHAIN_VERSION }}-x86_64-apple-darwin11
if-no-files-found: error
path: |
src/drivechaind
src/drivechain-cli
src/qt/drivechain-qt
src/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]
if: github.repository_owner == 'LayerTwo-Labs'
steps:
- name: Download artifacts
uses: actions/download-artifact@v4

- name: Zip artifacts
run: |
mv mainchain-*-x86_64-apple-darwin11 L1-Mainchain-latest-x86_64-apple-darwin
zip -r L1-Mainchain-latest-x86_64-apple-darwin.zip L1-Mainchain-latest-x86_64-apple-darwin
mv mainchain-*-x86_64-w64-mingw32 L1-Mainchain-latest-x86_64-w64-mingw32
zip -r L1-Mainchain-latest-x86_64-w64-mingw32.zip L1-Mainchain-latest-x86_64-w64-mingw32
mv mainchain-*-x86_64-unknown-linux-gnu L1-Mainchain-latest-x86_64-unknown-linux-gnu
zip -r L1-Mainchain-latest-x86_64-unknown-linux-gnu.zip L1-Mainchain-latest-x86_64-unknown-linux-gnu
- name: Upload artifacts to releases.drivechain.info
uses: cross-the-world/ssh-scp-ssh-pipelines@latest
with:
Expand All @@ -167,6 +186,4 @@ jobs:
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'
'L1-Mainchain-latest-*.zip' => '/var/www/html/'

0 comments on commit 044235d

Please sign in to comment.