Skip to content

Fix deploy yaml path and hugo version #5

Fix deploy yaml path and hugo version

Fix deploy yaml path and hugo version #5

Workflow file for this run

name: GitHub Pages
on:
push:
branches:
- main # Set a branch to deploy
pull_request:
jobs:
deploy:
runs-on: ubuntu-22.04
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@v3
with:
hugo-version: '0.125.3'
# extended: true
- name: Build
run: cd better-ripe;hugo --minify
# - name: Deploy
# uses: peaceiris/actions-gh-pages@v3
# if: github.ref == 'refs/heads/main'
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./public
- name: Deploy over SSH
uses: easingthemes/[email protected]
with:
server: ${{ secrets.HOSTING_DEPLOY_HOST }}
remote_port: 22
server_user: deploy
server_key: ${{ secrets.HOSTING_DEPLOY_KEY }}
local_path: './public'
remote_path: /var/www/html
args: '-avz --delete'
branch: 'main'
# dry_run: true
# debug: true