Skip to content

Deploy dev branch to other repo for pages #1

Deploy dev branch to other repo for pages

Deploy dev branch to other repo for pages #1

Workflow file for this run

name: Push Branch to Another Repo
on:
push:
branches:
- develop # You can modify this to the branch you want to trigger the action
jobs:
push-to-repo:
runs-on: ubuntu-latest
steps:
- name: Checkout the source repository
uses: actions/checkout@v2
- name: Add the destination repository
run: |
git remote add target https://github.com/${{ secrets.DEST_REPO_OWNER }}/${{ secrets.DEST_REPO_NAME }}.git
git fetch target
- name: Push branch to the destination repository
run: |
git push target develop