-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
win32 CI: deploy zip to selfnet mirror
instead of artifactory
- Loading branch information
1 parent
268b2f5
commit 16a7410
Showing
1 changed file
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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://[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: | ||
|