Skip to content

Merge pull request #115 from fusioninventory/master+julyreport #11

Merge pull request #115 from fusioninventory/master+julyreport

Merge pull request #115 from fusioninventory/master+julyreport #11

Workflow file for this run

name: Publish website to the ddurieux server
on:
push:
branches:
- master
jobs:
build:
name: Deploy website
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }}
restore-keys: |
${{ runner.os }}-gems-
- name: install bundle
run: sudo gem install bundler
- name: install dep gem
run: sudo bundle install
- name: build
run: bundle exec jekyll build
- name: Deploy with rsync
uses: "Pendect/[email protected]"
env:
DEPLOY_KEY: ${{ secrets.SSH_DOCUMENTATION_KEY }}
with:
flags: '-avzr --delete'
options: ''
ssh_options: ''
src: '_site/'
dest: '${{ secrets.SSH_DOCUMENTATION_USER }}@${{ secrets.SSH_HOST }}:${{ secrets.WEBSITE_PATH }}'
- name: Display status from deploy
run: echo "${{ steps.deploy.outputs.status }}"