-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from minjeong9919/chore/deployment
chore: 배포 및 배포 자동화 적용
- Loading branch information
Showing
3 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Sync Fork With Upstream | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
|
||
jobs: | ||
sync: | ||
if: github.repository == 'BrainPix-front' | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout develop | ||
uses: actions/checkout@v3 | ||
with: | ||
token: ${{secrets.PAT_TOKEN}} | ||
ref: develop | ||
persition-credentials: false | ||
|
||
- name: Set up Git | ||
run: | | ||
git config user.name minejeong9919 | ||
git config user.email "[email protected]" | ||
- name: Add remote-url | ||
run: | | ||
git remote add forked-repo https://github.com/minjeong9919/BrainPix-front.git | ||
- name: Push changes to Forked-reop | ||
env: | ||
GITHUB_USERNAME: minjeong9919 | ||
GITHUB_TOKEN: ${{secrets.PAT_TOKEN}} | ||
run: | | ||
git push -f http://$GITHUB_USERNAME:$GITHUB_TOKEN@https://github.com/minjeong9919/BrainPix-front.git develop | ||
- name: Clean up | ||
run: | | ||
git remote remove forked-repo |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"rewrites": [{ "source": "/(.*)", "destination": "/" }] | ||
} |