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

support: How to publish multiple directories using single action ? #797

Open
3 tasks done
sriramkukkadapu opened this issue Oct 28, 2022 · 1 comment
Open
3 tasks done
Assignees
Labels
support User support

Comments

@sriramkukkadapu
Copy link

Checklist

  • I am using the latest version of this action.
  • I have read the latest README and followed the instructions.
  • I have read the latest GitHub Actions official documentation and learned the basic spec and concepts.

Describe your question

For Ex: I have 2 folders
output
output2
i want these 2 folders should be published as artifacts separately in single action.

How to achieve this ?

Relevant links

Public repository:
YAML config:
YAML workflow:

Relevant log output

No response

Additional context.

No response

@peaceiris
Copy link
Owner

We can just move several folders into the public folder.

name: GitHub Pages

on:
  push:
    branches:
      - main
  pull_request:

jobs:
  deploy:
    runs-on: ubuntu-22.04
    permissions:
      contents: write
    concurrency:
      group: ${{ github.workflow }}-${{ github.ref }}
    steps:
      - uses: actions/checkout@v3

      - name: Build
        run: ...

      - name: Create public
        run: |
          mkdir ./public
          cp -r output1 output2 ./public

      - name: Deploy
        uses: peaceiris/actions-gh-pages@v3
        if: ${{ github.ref == 'refs/heads/main' }}
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          publish_dir: ./public

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

No branches or pull requests

2 participants