Skip to content

Add workflow to deploy to IFRS #1

Add workflow to deploy to IFRS

Add workflow to deploy to IFRS #1

name: Deploy to IFRS
on:
push:
branches:
- main
jobs:
DeployFrontend:
runs-on: ubuntu-latest
env:
- IFRS_GITLAB_SSH_KEY: ${{ secrets.IFRS_GITLAB_SSH_KEY }}

Check failure on line 10 in .github/workflows/deploy-to-ifrs.yml

View workflow run for this annotation

GitHub Actions / Deploy to IFRS

Invalid workflow file

The workflow is not valid. .github/workflows/deploy-to-ifrs.yml (Line: 10, Col: 7): A sequence was not expected .github/workflows/deploy-to-ifrs.yml (Line: 24, Col: 7): A sequence was not expected
- IFRS_GITLAB_FRONTEND_REPO_URL: ${{ secrets.IFRS_GITLAB_FRONTEND_REPO_URL }}
steps:
- uses: actions/checkout@v3
- run: echo $IFRS_GITLAB_SSH_KEY >> ~/.ssh./.id_rsa
- run: ssh-add ~/.ssh/.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: echo $IFRS_GITLAB_SSH_KEY >> ~/.ssh./.id_rsa
- run: ssh-add ~/.ssh/.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