Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Scipionh opened this issue Jun 30, 2020 · 0 comments
Open

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

Scipionh opened this issue Jun 30, 2020 · 0 comments

Comments

@Scipionh
Copy link

Scipionh commented Jun 30, 2020

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant