shalzz / zola-deploy-action

Github action for building a Zola site and deploying to Github Pages
MIT License
229 stars 91 forks source link

Theme is not a git repository #6

Closed tostaylo closed 4 years ago

tostaylo commented 4 years ago

I am using the Sam theme for my Zola project. I added the theme to my project with

git submodule add https://github.com/janbaudisch/zola-sam.git themes/sam

However, I am receiving the following error.

Starting deploy...
Fetching themes
fatal: Not a git repository (or any parent up to mount point /github/workspace)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
##[error]Docker run failed with exit code 128

Here is my .yaml


on: [push]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - name: Zola Deploy to Pages
      uses: shalzz/zola-deploy-action@v0.9.0
    env:
        TOKEN: ${{ secrets.Token }}

Any thoughts?

shalzz commented 4 years ago

Hi,

You are missing one crucial step in your workflow. Before doing anything in github actions you have to checkout your git repo with - uses: actions/checkout@master. See the example in the README for more details.

tostaylo commented 4 years ago

Guess I should read the docs better. Thank you. Please delete this from the internet so the world will not see my mistake. :)

shalzz commented 4 years ago

No worries @tostaylo, happens to all of us.