Skip to content

Deploy: GitLab Sync fix #2

Deploy: GitLab Sync fix

Deploy: GitLab Sync fix #2

Workflow file for this run

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 frontend:frontend --force
git checkout deploy
git branch -D frontend