diff --git a/.github/workflows/deploy-to-ifrs.yml b/.github/workflows/deploy-to-ifrs.yml new file mode 100644 index 00000000..acbe02dc --- /dev/null +++ b/.github/workflows/deploy-to-ifrs.yml @@ -0,0 +1,35 @@ +name: Deploy to IFRS +on: + push: + branches: + - main +jobs: + DeployFrontend: + runs-on: ubuntu-latest + env: + IFRS_GITLAB_SSH_KEY: ${{ secrets.IFRS_GITLAB_SSH_KEY }} + IFRS_GITLAB_FRONTEND_REPO_URL: ${{ secrets.IFRS_GITLAB_FRONTEND_REPO_URL }} + steps: + - uses: actions/checkout@v3 + - run: touch .id_rsa + - run: echo $IFRS_GITLAB_SSH_KEY >> .id_rsa + - run: ssh-add .id_rsa + - run: git subtree split -P frontend -b gitlab-ifrs/frontend + - run: git checkout gitlab-ifrs/frontend + - run: git reset --hard + - run: git push -f $IFRS_GITLAB_FRONTEND_REPO_URL stage-release + + DeployBackend: + runs-on: ubuntu-latest + env: + IFRS_GITLAB_SSH_KEY: ${{ secrets.IFRS_GITLAB_SSH_KEY }} + IFRS_GITLAB_BACKEND_REPO_URL: ${{ secrets.IFRS_GITLAB_BACKEND_REPO_URL }} + steps: + - uses: actions/checkout@v3 + - run: touch .id_rsa + - run: echo $IFRS_GITLAB_SSH_KEY >> .id_rsa + - run: ssh-add .id_rsa + - run: git subtree split -P backend -b gitlab-ifrs/backend + - run: git checkout gitlab-ifrs/backend + - run: git reset --hard + - run: git push -f $IFRS_GITLAB_BACKEND_REPO_URL stage-release