Skip to content

Update and Pin 3rd Party Versions (#482) #234

Update and Pin 3rd Party Versions (#482)

Update and Pin 3rd Party Versions (#482) #234

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@2654679fe7f7c29875c669398a8ec0791b8a64a1 # v1.215.0
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@3cccb6851148e6198ed9ed89eb0d1c17b5e58cc7 #v7.0.2
with:
switches: -avzr --delete
path: _site/
remote_path: /srv/www/ffmuc.net/_site
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 }}