Skip to content

Deploy

Deploy #33

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build-deploy:
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Set up Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.68.3'
# extended: true
- name: Build
run: ./update-dependencies.sh && hugo
- name: Deploy
run: rm $HOME/prev-public -rf && mv $HOME/public $HOME/prev-public && mv public $HOME/public