ci: add env file step
All checks were successful
/ Build (push) Successful in 25s

This commit is contained in:
log101 2024-06-11 14:43:13 +03:00
parent 56cc8e7831
commit b5d2cfc18c

View File

@ -39,13 +39,14 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
working-directory: ${{ env.BUILD_PATH }} working-directory: ${{ env.BUILD_PATH }}
- name: Make envfile
uses: SpicyPizza/create-envfile@v2.0
with:
envkey_PUBLIC_BACKEND_HOST: ${{ vars.PUBLIC_BACKEND_HOST }}
- name: Build with Astro - name: Build with Astro
run: | run: |
${{ steps.detect-package-manager.outputs.runner }} astro build ${{ steps.detect-package-manager.outputs.runner }} astro build
working-directory: ${{ env.BUILD_PATH }} working-directory: ${{ env.BUILD_PATH }}
- uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.KEY }}
- name: Deploy to my server - name: Deploy to my server
uses: up9cloud/action-rsync@master uses: up9cloud/action-rsync@master
env: env: