Github Actions - Uploading an artifact to repository #25640
-
Hello there fellow users! I am working on a workflow that setups my required environments (Node and Java) to execute and build my project. I have everything working except one thing: I need to upload a file that is generated by the software directly to the repository and overwriting or replacing the current one if it exists because i have another software that depends on the file. I have tried uploading the file as an artifact and then use the download action but it doesn’t replace the file. Below i have provided the workflow i have, Any help would be much appreciated!.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Just run the necessary git commands to do it. git add Setup a secret that has the necessary permissions |
Beta Was this translation helpful? Give feedback.
-
That did the trick! I used this action to make it easier on myself and not complicate things too much. Below is the action i am using for commiting. Hope it will be of use for anyone
|
Beta Was this translation helpful? Give feedback.
Just run the necessary git commands to do it.
git add
git commit
git push
Setup a secret that has the necessary permissions