s0 / git-publish-subdir-action

GitHub Action to push a subdirectory as a branch to any git repo (e.g. for GitHub Pages)
https://github.com/marketplace/actions/push-git-subdirectory-as-branch
MIT License
208 stars 36 forks source link

Could a submit to a repo not affect other sub–dir(s) of the same repo? #53

Closed caibinwav123456 closed 2 years ago

caibinwav123456 commented 2 years ago

When I submit something to repository A, this action deletes all contents within the desired branch of A before acting push operation (I can see it clearly in the log). I wish to use one repository to store multiple published building artifacts or multiple versions of releases, so is there a way to do this?

s0 commented 2 years ago

@caibinwav123456 yes. For this you would use the CLEAR_GLOBS_FILE as described here: https://github.com/s0/git-publish-subdir-action#custom-clear-operations

caibinwav123456 commented 2 years ago

I've got it, then if I issue a new release, is there an environment variable that reflects the version or title or any other attribute I write while creating the release, which can be used to identify it (eg. I can put it into a file name)?

Just a naive question~