Merge branch 'develop' #62
This file contains 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: Deploy to Personal Repository | |
on: | |
push: | |
branches: ['main'] | |
jobs: | |
deploy-to-personal-repo: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Main Repository | |
uses: actions/checkout@v4 | |
- name: Checkout Personal Repository | |
uses: actions/checkout@v4 | |
with: | |
repository: 1eeyerin/BloodFolio | |
token: ${{ secrets.PERSONAL_REPO }} | |
path: 'tmp_repo' | |
- name: Copy Relevant Files to Personal Repository | |
run: | | |
rsync -av --exclude=".git" --exclude=".github" --exclude="dist" --exclude="node_modules" --include="storybook/***" --include="src/***" --include="*.js" --include="*.json" --include="*.md" --include="*.lock" --exclude="*" ./ tmp_repo/ | |
- name: Push to Personal Repository | |
run: | | |
cd tmp_repo | |
git config --local user.email ${{ secrets.OFFICIAL_EMAIL }} | |
git config --local user.name 'GitHub Actions' | |
git add . | |
git commit -m 'Deploy Build Output to Personal Repository' | |
git push origin main |