Skip to content

Bug: build_folder does not accept arguments with ./ and will ignore folder without it #13

Closed
@kdipippo

Description

@kdipippo

README provides the following:

build_folder default is set to "./dist"

My workflow file started as:

name: Website Deploy Actions
on:
  push:

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: All things angular
      uses: AhsanAyaz/angular-deploy-gh-pages-actions@v1.2.1
      with:
        angular_project_dir: ./website
        github_access_token: ${{ secrets.PAT }}
        build_configuration: production
        base_href: https://prairiewatch.dog/
        deploy_branch: master
        build_folder: ./docs

The build result: https://github.com/Pepper-Wood/prairiewatch.dog/pull/29/checks?check_run_id=832100982

Checking configuration and starting deployment...🚦
##[error]There was an error initializing the repository: Incorrectly formatted build folder. The deployment folder cannot be prefixed with '/' or './'. Instead reference the folder name directly. ❌
Deployment Failed ❌

When I make the change to build_folder:

    - name: All things angular
      uses: AhsanAyaz/angular-deploy-gh-pages-actions@v1.2.1
      with:
        angular_project_dir: ./website
        github_access_token: ${{ secrets.PAT }}
        build_configuration: production
        base_href: https://prairiewatch.dog/
        deploy_branch: master
        build_folder: docs

The resulting files were pushed to root:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions