shalzz / zola-deploy-action

Github action for building a Zola site and deploying to Github Pages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

deployment fails with "error: wrong number of arguments, should be 2"

flxzt opened this issue · comments

see:

https://github.com/flxzt/mercury/actions/runs/4523922956/jobs/7967401062

I am using the example shown in the readme:

name: Zola on GitHub Pages

on: 
 push:
  branches:
   - main

jobs:
  build:
    name: Publish site
    runs-on: ubuntu-latest
    steps:
    - name: Checkout main
      uses: actions/checkout@v3.0.0
    - name: Build and deploy
      uses: shalzz/zola-deploy-action@v0.17.2
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

The latest commit branch should resolve this. Try using uses: shalzz/zola-deploy-action@master in your workflow file.

Also if you're building a site without a theme submodule, disable pulling in the submodule with the BUILD_THEMES flag mentioned here: https://github.com/shalzz/zola-deploy-action#environment-variables

that fixed it. thanks!

The actions/checkout action learnt a new input set-safe-directory: <path> since v3 (see actions/checkout@0ffe6f9), so I think sth like

      - uses: actions/checkout@v3
        with:
          set-safe-directory: '*'

should work as well.

The latest commit branch should resolve this. Try using uses: shalzz/zola-deploy-action@master in your workflow file.

Also if you're building a site without a theme submodule, disable pulling in the submodule with the BUILD_THEMES flag mentioned here: https://github.com/shalzz/zola-deploy-action#environment-variables

any way to make this a new release so that we can pin our action workflows to that instead of a potentially changing master?