-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b7c7668
commit ccff772
Showing
1 changed file
with
10 additions
and
13 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 |
---|---|---|
|
@@ -77,21 +77,18 @@ jobs: | |
name: ${{ env.dmg_name }} | ||
path: ${{ env.dmg_name }}.dmg | ||
|
||
- name: Prepare for nightly | ||
- name: Upload to nightly | ||
shell: bash | ||
env: | ||
NIGHTLY_SFTP_KEY: ${{secrets.NIGHTLY_SFTP_KEY}} | ||
run: | | ||
brew install lftp | ||
mkdir ~/.ssh | ||
chmod 700 ~/.ssh | ||
echo "$NIGHTLY_SFTP_KEY" > ~/.ssh/id_rsa | ||
echo 'nightly.kvirc.net ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPWXPg8wxcaZqGLfFpS+TxkterxB4luo8e/bxh33poGQ' > ~/.ssh/known_hosts | ||
chmod 600 ~/.ssh/id_rsa ~/.ssh/known_hosts | ||
mkdir upload-area | ||
mv *.dmg upload-area/ | ||
echo '{"bin": "${{ env.dmg_name }}.dmg", "size":' $(wc -c <"${{ env.dmg_name }}.dmg") '}' > upload-area/latest-macos | ||
- name: Upload to nightly | ||
if: ${{ github.repository == 'kvirc/KVIrc' && github.event_name == 'push' }} | ||
uses: wlixcc/[email protected] | ||
with: | ||
server: nightly.kvirc.net | ||
username: ${{secrets.NIGHTLY_SFTP_USER}} | ||
ssh_private_key: ${{secrets.NIGHTLY_SFTP_KEY}} | ||
local_path: upload-area/ | ||
remote_path: x/ | ||
sftp_only: true | ||
sftpArgs: '-o ConnectTimeout=5' | ||
lftp -c "connect -u ${{secrets.NIGHTLY_SFTP_USER}} sftp://nightly.kvirc.net; mirror -R upload-area x/" |