Skip to content

Push built files to repo using Actions #26615

Answered by BrightRan
Andre601 asked this question in Actions
Discussion options

You must be logged in to vote

@andre601 ,

All my above steps are based on having checked out the repository from the remote to the local of the runner machine.
The basic process is following:

steps:
  - name: Checkout code
    uses: actions/checkout@v2
  • name: Modify/add files
    . . .

  • name: push changes to remote
    run: |
    git config --global user.name "user mane"
    git config --global user.email "user email"

    git add <pathspec> git commit -m "commit message"
    git push

Description:

1) The checkout action can check out the repository from the remote to the local and also generate the local repository on the runner machine, it does not only download the source files to the local.

2) In the git add command, you can speci…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants