diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7e9a258..43ee59d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -13,6 +13,17 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Create Environment File + env: + ANGULAR_APP_API_KEY: ${{ secrets.ANGELOS_APP_API_KEY }} + run: | + echo "export const environment = { + production: true, + angelosUrl: '/api/v1/question/chat', + angelosToken: '/api/token', + angelosAppApiKey: '${ANGELOS_APP_API_KEY}' + };" > src/environments/environment.prod.ts + - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -57,17 +68,6 @@ jobs: source: "./docker-compose.yml" target: /home/${{ vars.VM_USERNAME }}/${{ github.repository }} - - name: Create Environment File - env: - ANGULAR_APP_API_KEY: ${{ secrets.ANGELOS_APP_API_KEY }} - run: | - echo "export const environment = { - production: true, - angelosUrl: '/api/v1/question/chat', - angelosToken: '/api/token', - angelosAppApiKey: '${ANGELOS_APP_API_KEY}' - };" > src/environments/environment.prod.ts - - name: SSH to VM and Execute Docker-Compose Up uses: appleboy/ssh-action@v1.0.3 with: