Skip to content

Clarity around automated deployment to gh-pages #454

Closed
@NullVoxPopuli

Description

@NullVoxPopuli

I've had a couple confusions with the deployment process, and am wondering if others have had the same issue.

When I first started the project, I had to manually create the gh-pages branch.. but I also had to make sure it was an empty branch -- delete all my repository files -- as I don't need addon source deploy as if it's a website. There is no home index.html though: https://github.com/NullVoxPopuli/ember-jsqr/tree/gh-pages I haven't yet dug in to this to see what could be wrong. I suspect it may have something going wrong around this code: https://github.com/ef4/ember-cli-deploy-git/blob/master/index.js#L44 (one of the ember-cli-deploy plugins addon-docs uses)

So, idk if other people have had these issues, and additions to the guides would be helpful?

  • create empty gh-pages branch before deploying
  • ?? (whatever I need to do to fix the root index.html (and related assets) missing issue

Update (maybe not directly related to deployment, but I am using GH Actions with all this)

Forgot that I also had to do this in the GH Action

run: echo "::set-env name=ADDON_DOCS_VERSION_PATH::${GITHUB_REF##*/}"

related: #437

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions