diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index e0107cb..da594a8 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -1,4 +1,4 @@ -name: Frontend GitHub Actions +name: Merge To Ready run-name: ${{ github.actor }} is testing out GitHub Actions 🚀 on: push: diff --git a/.github/workflows/sync-to-fork.yml b/.github/workflows/sync-to-fork.yml new file mode 100644 index 0000000..fa5846f --- /dev/null +++ b/.github/workflows/sync-to-fork.yml @@ -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 "minjeong9919@github.com" + + - 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 diff --git a/vercel.json b/vercel.json new file mode 100644 index 0000000..3a48e56 --- /dev/null +++ b/vercel.json @@ -0,0 +1,3 @@ +{ + "rewrites": [{ "source": "/(.*)", "destination": "/" }] +}