Skip to content

Merge pull request #5 from scilus/move_from_jenkins_to_github_selfhos… #1

Merge pull request #5 from scilus/move_from_jenkins_to_github_selfhos…

Merge pull request #5 from scilus/move_from_jenkins_to_github_selfhos… #1

Workflow file for this run

name: scilus_website build
on:
push:
branches:
- master
pull_request_target:
branches:
- master
jobs:
deploy:
runs-on: scil-website-runners
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v4
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.68.3'
# extended: true
- name: Build
run: hugo -D -F -b "https://scil.usherbrooke.ca" -d scil.usherbrooke.ca
- name: Deploy
run: rsync --delete -r "$WORKSPACE/scil.usherbrooke.ca/" bora2502@scil.usherbrooke.ca:/var/www/bk_scil.usherbrooke.ca/