Skip to content

Commit

Permalink
Deploy: GitLab Sync
Browse files Browse the repository at this point in the history
  • Loading branch information
404-not-foundl committed Apr 23, 2024
1 parent 0fb0e13 commit 8640d63
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@

name: deployment

on:
push:
branches:
- deploy

jobs:
push-to-gitlab:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Configure Git
run: |
git config user.name "이우성"
git config user.email "[email protected]"
- name: Push to GitLab frontend branch
env:
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
run: |
git checkout deploy
git pull origin deploy
git checkout -b frontend
git filter-branch --force --prune-empty --index-filter "git rm -rf --cached --ignore-unmatch .github" HEAD
git remote add gitlab https://oauth2:[email protected]/s10-final/S10P31D206.git
git push gitlab deploy:frontend --force
git checkout deploy
git branch -D frontend

0 comments on commit 8640d63

Please sign in to comment.