Skip to content

Commit

Permalink
Deploy dev branch to other repo for pages
Browse files Browse the repository at this point in the history
  • Loading branch information
mattysmith22 committed Jan 12, 2025
1 parent 8c11025 commit 5285c72
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
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/AH-64D-Apache-Official-Project/docs-dev.git
git fetch target
- name: Push branch to the destination repository
run: |
git push target develop

0 comments on commit 5285c72

Please sign in to comment.