Skip to content

Checking out and combining two branches on gh-pages #293

Open
@Scipionh

Description

@Scipionh

I did write the following github action:

jobs:
  publish:
    name: Publish
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@master
        with:
          ref: develop

      - name: Checkout blog
        uses: actions/checkout@master
        with:
          ref: blog
          path: ./public/blog

      - name: Install SSH Client πŸ”‘
        uses: webfactory/ssh-agent@v0.2.0
        with:
          ssh-private-key: ${{ secrets.ACTIONS_DEPLOY_KEY }}

      - name: Deploy
        uses: JamesIves/github-pages-deploy-action@releases/v3
        with:
          SSH: true
          BRANCH: gh-pages
          FOLDER: public

The public folder is created by the first checkout.
Despite not having an error, the final result is not correct for the blog folder as it is a symlink. Is there anything I am doing wrongly with the way I did nest the checkout of my second (blog) branch ?

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