enriikke / gatsby-gh-pages-action

GitHub Action to build and deploy your Gatsby site to GitHub Pages ❤️🎩
MIT License
295 stars 62 forks source link

deploy-repo "Knobs & Handles" valid inputs? #52

Closed itsrobli closed 3 years ago

itsrobli commented 3 years ago

Hi there

Anybody know what constitutes a valid input for the key deploy-repo?

I have tried <username>/<repo>, <repo>, and http://.....git

This is the build log message I get:

Warning: Unexpected input(s) 'deploy-repo', valid inputs are ['access-token', 'deploy-branch', 'gatsby-args']

This is my yml file

name: Gatsby Publish

on:
  push:
    branches:
      - test

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - uses: enriikke/gatsby-gh-pages-action@v2.1.1
        with:
          access-token: ${{ secrets.ACCESS_TOKEN }}
          deploy-branch: main
          deploy-repo: <see above>
          gatsby-args: --prefix-paths
NNcrawler commented 3 years ago

@itsrobli I'm facing the same issue. I checked the code and deploy-repo is no longer there for v2.1.1. I ended up fork the v2.0.0 and modify something as I still need to deploy to a different repo and there is a bug there.

itsrobli commented 3 years ago

@NNcrawler Hey sorry I only just saw this.

I ended up using this https://github.com/peaceiris/actions-gh-pages

It's a lot more flexible as well.