Skip to content

Adding build platform-693 in category workbench #128

Adding build platform-693 in category workbench

Adding build platform-693 in category workbench #128

name: Build and Deploy Nuxeo Benchmarks
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: benchmarks
steps:
- name: Clean directory
run: |
sudo rm -rf resources/ public/
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
- name: Build Site
uses: chabad360/hugo-actions@3a5b10adf0b017f695597e22ebcb79e40fd6cb4e #v2
with:
buildPath: 'public'
hugoVersion: 'extended_0.80.0'
args: -t hyde
- name: upload artificate
uses: actions/upload-artifact@v4
with:
name: benchmarks-artifact
path: ${{ github.workspace }}/public
- name: Set up SSH
uses: webfactory/ssh-agent@d4b9b8ff72958532804b70bbe600ad43b36d5f2e #v0.8.0
with:
ssh-private-key: ${{ secrets.SERVER_SSH_PRIVATE_KEY }}
- name: Rsync to Server
run: |
rsync -rcl --delete ${{ github.workspace }}/public/ \
"${{ secrets.SERVER_USERNAME }}@${{ secrets.SERVER_IP }}:/var/www/nuxeo.com/benchmarks"