Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -313,3 +313,32 @@ jobs:
cache-key: flatpak-builder-${{ github.sha }}
arch: ${{ matrix.variant.arch }}
verbose: true

deploy:
name: "Deploy"
runs-on: ubuntu-latest
needs: [build, flatpak]
if: github.ref == 'refs/heads/main'

steps:
- name: Download artifacts
uses: actions/download-artifact@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up SSH key
run: |
mkdir -p ~/.ssh
echo "${{ secrets.DEPLOY_PRIVATE_KEY }}" > ~/.ssh/id_rsa
printf "Host ryne.moe\nPort 38901\nStrictHostKeyChecking no" >> ~/.ssh/config
chmod 700 ~/.ssh
chmod 600 ~/.ssh/id_rsa
chmod 644 ~/.ssh/config
- name: Upload artifacts
run: |
pushd novus-windows-x86_64
zip -r ../ novus-windows-x86_64 *
popd

rsync --recursive "novus-windows-x86_64" deploy@ryne.moe:/srv/http/astra-distrib/novus/
rsync --recursive "novus-x86_64.flatpak" deploy@ryne.moe:/srv/http/astra-distrib/novus/
rsync --recursive "novus-aarch64.flatpak" deploy@ryne.moe:/srv/http/astra-distrib/novus/
Loading