Create ARCHITECTURE.md #75
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Sync Subfolders to Repos | |
| on: | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| sync-backend: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Push backend to backend repo | |
| if: contains(github.event.head_commit.message, '[sync-backend]') | |
| run: | | |
| echo "📦 Syncing backend..." | |
| mkdir backend-sync | |
| cp -r backend-python-api/* backend-sync/ | |
| cd backend-sync | |
| git init | |
| git checkout -b main | |
| git config user.name "remember2hydrate" | |
| git config user.email "themistoklis.charmpis@outlook.com" | |
| git remote add origin https://remember2hydrate:${{ secrets.GH_PAT }}@github.com/remember2hydrate/bingepal-backend.git | |
| git add . | |
| git commit -m "Auto-sync from monorepo" | |
| git push --force origin main | |
| sync-android: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Push android app to android repo | |
| if: contains(github.event.head_commit.message, '[sync-android]') | |
| run: | | |
| echo "📱 Syncing android..." | |
| mkdir android-sync | |
| cp -r mobile-android-app/* android-sync/ | |
| cd android-sync | |
| git init | |
| git checkout -b main | |
| git config user.name "remember2hydrate" | |
| git config user.email "themistoklis.charmpis@outlook.com" | |
| git remote add origin https://remember2hydrate:${{ secrets.GH_PAT }}@github.com/remember2hydrate/bingepal-android.git | |
| git add . | |
| git commit -m "Auto-sync from monorepo" | |
| git push --force origin main | |
| sync-web: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Push web to web repo | |
| if: contains(github.event.head_commit.message, '[sync-web]') | |
| run: | | |
| echo "🌐 Syncing web..." | |
| mkdir web-sync | |
| cp -r docs/* web-sync/ | |
| cd web-sync | |
| git init | |
| git checkout -b main | |
| git config user.name "remember2hydrate" | |
| git config user.email "themistoklis.charmpis@outlook.com" | |
| git remote add origin https://remember2hydrate:${{ secrets.GH_PAT }}@github.com/remember2hydrate/bingepal-web.git | |
| git add . | |
| git commit -m "Auto-sync from monorepo" | |
| git push --force origin main |