Skip to content

Commit

Permalink
Get rid of the custom sftp upload which doesn't work
Browse files Browse the repository at this point in the history
Rename artifact to .dmg to make it easier to find the correct artifact
to download by custom script
  • Loading branch information
DarthGandalf committed Oct 22, 2023
1 parent f5ddd80 commit 4efbe3f
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions .github/workflows/build_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,23 +74,5 @@ jobs:
- name: Publish artifact
uses: actions/upload-artifact@v3
with:
name: ${{ env.dmg_name }}
name: ${{ env.dmg_name }}.dmg
path: ${{ env.dmg_name }}.dmg

- name: Upload to nightly
shell: bash
env:
NIGHTLY_SFTP_KEY: ${{secrets.NIGHTLY_SFTP_KEY}}
run: |
brew install lftp
echo "$NIGHTLY_SFTP_KEY" > ~/.ssh/upload.key
echo 'nightly.kvirc.net ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPWXPg8wxcaZqGLfFpS+TxkterxB4luo8e/bxh33poGQ' >> ~/.ssh/known_hosts
echo '' >> ~/.ssh/config
echo 'Host nightly.kvirc.net' >> ~/.ssh/config
echo 'User ${{secrets.NIGHTLY_SFTP_USER}}' >> ~/.ssh/config
echo 'IdentityFile ~/.ssh/upload.key' >> ~/.ssh/config
chmod 600 ~/.ssh/upload.key ~/.ssh/known_hosts ~/.ssh/config
mkdir upload-area
echo '{"bin": "${{ env.dmg_name }}.dmg", "size":' $(wc -c <"${{ env.dmg_name }}.dmg") '}' > upload-area/latest-macos
mv *.dmg upload-area/
lftp -c "connect sftp://nightly.kvirc.net; mirror -R upload-area x"

0 comments on commit 4efbe3f

Please sign in to comment.