diff --git a/.github/ISSUE_TEMPLATE/action.yml b/.github/ISSUE_TEMPLATE/action.yml new file mode 100644 index 0000000..8c85ed1 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/action.yml @@ -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 "sitpo96@naver.com" + + - 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:$GITLAB_TOKEN@lab.ssafy.com/s10-final/S10P31D206.git + git push gitlab deploy:frontend --force + git checkout deploy + git branch -D frontend