From 16a74108b6eb02c4ce9d20e23e5b05269ff78d92 Mon Sep 17 00:00:00 2001 From: Lukas K Date: Wed, 25 May 2022 00:16:39 +0200 Subject: [PATCH] win32 CI: deploy zip to selfnet mirror instead of artifactory --- .github/workflows/win32.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/win32.yml b/.github/workflows/win32.yml index 14420fded..ed0dfefef 100644 --- a/.github/workflows/win32.yml +++ b/.github/workflows/win32.yml @@ -41,6 +41,7 @@ jobs: make git dos2unix + rsync - name: Downgrade librsvg shell: msys2 {0} run: pacman -U https://mirror.selfnet.de/msys2/mingw/mingw64/mingw-w64-x86_64-librsvg-2.50.3-3-any.pkg.tar.zst --noconfirm @@ -55,13 +56,13 @@ jobs: run: ./check_dll.sh - name: set artifact name shell: msys2 {0} - run: echo "artifact_name=horizon-win64-$(date +%Y-%m-%d-%H%M)" >> $GITHUB_ENV - - name: deploy to artifactory + run: echo "artifact_name=horizon-win64-$(date +%Y-%m-%d-%H%M)-${{ github.ref_name }}" >> $GITHUB_ENV + - name: deploy to selfnet mirror if: github.event_name != 'pull_request' shell: msys2 {0} run: | - curl -u actions:${{ secrets.ARTIFACTORY }} -T dist/*.zip "https://horizoneda.jfrog.io/artifactory/horizon-win64-ci/$(basename dist/*.zip);commit=${{ github.sha }};ref=${{ github.ref }}" > deploy.json - echo "::notice title=Download this build::Get the zip archive from Artifactory: $(jq -r .downloadUri < deploy.json)" + RSYNC_PASSWORD=${{ secrets.RSYNC_PASSWORD }} rsync -avz --stats dist/*.zip rsync://horizon-eda@mirror-1.server.selfnet.de/horizon-eda/win64-ci/${{ env.artifact_name }}.zip + echo "::notice title=Download this build::Get the zip archive from the selfnet mirror: https://mirror.selfnet.de/horizon-eda/win64-ci/${{ env.artifact_name }}.zip" - uses: actions/upload-artifact@v2-preview if: github.event_name == 'pull_request' with: