Hello! I have a personal repo and I want deploy this site.
cd.yml:
name: github pages
on:
push:
branches:
- master # Set a branch to deploy
pull_request:
jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
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: 'latest'
# extended: true
- name: Build
run: hugo --minify
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
config.yml:
baseURL: "https://emilyseville7cfg.github.io/"
languageCode: "en-us"
title: "Emily Grace Seville"
theme: "ananke"
ignoreFiles: ["^static/schemas/.*$"]
enableEmoji: true
markup:
highlight:
style: dracula
lineNumbersInTable: false
cascade:
featured_image: "/backgrounds/default.jpg"
omit_header_text: true
Params:
text_color: "purple"
What am I missing to successfully deploy my site? As I understand:
- site is being built to
public
folder - this folder contents is pushed to
gh-pages
-
gh-pages
is used to deploy site
Is it right? Why there is no gh-pages
branch created after any new commit?
Now GitHub Actions fails with Action failed with "The process '/usr/bin/git' failed with exit code 128"
.