Skip to content

Commit

Permalink
ci: upload artifacts step
Browse files Browse the repository at this point in the history
Signed-off-by: William Casarin <jb55@jb55.com>
  • Loading branch information
jb55 committed Jan 31, 2025
1 parent 5d4548d commit cf205a8
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -256,3 +256,29 @@ jobs:
name: DamusNotedeckInstaller-${{ matrix.arch }}.exe
path: packages\${{ matrix.arch }}\DamusNotedeckInstaller.exe

upload-artifacts:
name: Upload Artifacts to Server
runs-on: ubuntu-latest
needs: [packaging, macos-dmg, windows-installer]
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/ci'

steps:
- name: Download all Artifacts
uses: actions/download-artifact@v4

- name: Setup SSH Agent
run: |
eval "$(ssh-agent -s)"
echo "${{ secrets.DEPLOY_SFTP_KEY }}" | tr -d '\r' | ssh-add -
- name: Add Remote Host to Known Hosts
run: echo "${{ secrets.DEPLOY_IP }} ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEN65pj1cNMqlf96jZLr1i9+mnHIN4jjRPPTDix6sRnt" >> ~/.ssh/known_hosts

- name: Copy Artifacts to Server
run: |
scp notedeck-x86_64.rpm \
notedeck-x86_64.deb \
packages/notedeck-x86_64.dmg \
packages/notedeck-aarch64.dmg \
packages/x86_64/DamusNotedeckInstaller.exe \
${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_IP }}:upload/

0 comments on commit cf205a8

Please sign in to comment.