libresilient: use alt-fetch before cache #3
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
name: Deploy Master Branch | |
on: | |
push: | |
branches: | |
- main | |
- new-deployment | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: DeterminateSystems/nix-installer-action@main | |
- uses: DeterminateSystems/magic-nix-cache-action@main | |
- name: Build the site with Jekyll | |
run: nix build | |
- name: Upload | |
run: | | |
mkdir -p "$HOME/.ssh" | |
echo "${{ secrets.KEY }}" > "$HOME/.ssh/key" | |
chmod 600 "$HOME/.ssh/key" | |
rsync -rILvh -e "ssh -i $HOME/.ssh/key -o StrictHostKeyChecking=no" $GITHUB_WORKSPACE/result/ "${{ secrets.USERNAME }}@delta.chat:/var/www/html/_site" |