Upload files to GitHub repository
name: Upload to GitHub
on:
  push:
    branches:
      - master
jobs:
  upload_job:
    runs-on: ubuntu-latest
    name: Upload
    steps:
      - name: Checkout
        uses: actions/checkout@v2
        # Setup node first
      - name: Setup node
        uses: actions/setup-node@v1
      - name: Upload to GitHub
        uses: LasyIsLazy/[email protected]
        with:
          access-token: ${{ secrets.ACCESS_TOKEN }}
          file-path: localPath
          owner: LasyIsLazy
          repo: githubRepo
          remote-dir: remoteDir- This action runs on
Node.js, you must setupNode.js, see Usage Example. - This action should have access to your GitHub repository. Strongly recommend store it in secrets. Create a personal access token with the 
repopermission. Create a secret namedACCESS_TOKENin your repository and copy access token to the secret value. 
| key | required | example | description | 
|---|---|---|---|
| access-token | ✔ | ${{ secrets.ACCESS_TOKEN }} | Token access to repository. | 
| file-path | ✔ | localDir/localPath | Local file path/directory. | 
| owner | ✔ | LasyIsLazy | Repo owner. | 
| repo | ✔ | my-repository | Repository name. | 
| remote-dir | remoteDir/remotePath | Remote repository file path/directory(will be created if not exist). Default: The root of the repository. | |
| commit-message | Upload files to GitHub | Git commit message | |
| branch-name | my-branch-name | Branch name to upload the file(s) to. Branch must exists |