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

proposal: Include files not directory #727

Open
3 tasks done
apis3445 opened this issue Mar 27, 2022 · 1 comment
Open
3 tasks done

proposal: Include files not directory #727

apis3445 opened this issue Mar 27, 2022 · 1 comment
Assignees
Labels

Comments

@apis3445
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 proposal

I want to deploy to github pages but only the .html pages. I only saw optins to exclude but not to include.

Describe the solution you'd like

pulish_dir: path/*.html

Describe alternatives you've considered

I consider exclude but I have a lot of files to exclude

Additional context

No response

@peaceiris
Copy link
Owner

I like using Coreutils for that case.

- name: Prepare public
  run: |
    mkdir ./public
    find ./your_path -name "*.html" -exec cp {} ./public \;
- name: Deploy
  uses: peaceiris/actions-gh-pages@v3
  with:
    github_token: ${{ secrets.GITHUB_TOKEN }}
    publish_dir: ./public

I think that there is no advantage to this type of feature more than using Coreutils. So we have no plan to add such an option.

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

No branches or pull requests

2 participants