Skip to content

Commit

Permalink
win32 CI: deploy zip to selfnet mirror
Browse files Browse the repository at this point in the history
instead of artifactory
  • Loading branch information
carrotIndustries committed May 26, 2022
1 parent 268b2f5 commit 16a7410
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/win32.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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://[email protected]/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:
Expand Down

0 comments on commit 16a7410

Please sign in to comment.