Skip to content

redeploy new workflow #225

redeploy new workflow

redeploy new workflow #225

Workflow file for this run

name: DEPLOY
on:
push:
branches:
- main
jobs:
deploy:
if: github.repository_owner == 'freifunkMUC'
strategy:
fail-fast: false
matrix:
target: [webfrontend03, webfrontend04, webfrontend05, webfrontend06]
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Ruby environment
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler-cache: true # Enables caching for Bundler
- name: Install dependencies
run: bundle install --jobs 4 --retry 3
- name: Build Jekyll site
run: bundle exec jekyll build
- name: Verify _site directory
run: ls -al ${{ github.workspace }}/_site
- name: Deploy via rsync
uses: burnett01/rsync-deployments@5.2
with:
switches: -avzr --delete
path: ${{ github.workspace }}/_site/
remote_path: /srv/www/ffmuc.net/
remote_host: ${{ matrix.target }}.ext.ffmuc.net
remote_user: deploy-ffmuc
rsh: -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa
remote_key: ${{ secrets.DEPLOY_KEY }}