Skip to content

Commit

Permalink
Deployment is now working! 👌
Browse files Browse the repository at this point in the history
Debug deployment

debug again

Deployment is now working! 👌

Remove some exclude folders

Fix rsync
  • Loading branch information
odolbeau committed Dec 13, 2023
1 parent 3aa53aa commit 714f0a3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ on:
push:
branches:
- main
- production

jobs:
build:
deploy:
name: Deploy
runs-on: ubuntu-20.04
environment: staging
environment: ${{ github.ref == 'refs/heads/production' && 'production' || 'staging' }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -25,13 +27,22 @@ jobs:
with:
composer-options: "--optimize-autoloader"

- name: Install assets
run: bin/console importmap:install

- name: Build assets (SASS)
run: bin/console sass:build

- name: Compile asset map
run: bin/console asset-map:compile

- name: Deploy files over SSH
uses: easingthemes/ssh-deploy@main
with:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
ARGS: "-avzr --delete-after"
ARGS: "-rlgoDzvcC -i --delete-after --delete-excluded"
SOURCE: "/"
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_USER: ${{ secrets.REMOTE_USER }}
TARGET: ${{ secrets.REMOTE_TARGET }}
EXCLUDE: "/migrations/, /var/"
EXCLUDE: "/migrations/, /var/, /.github/, /tests/, /tools/"
2 changes: 0 additions & 2 deletions bin/deploy

This file was deleted.

0 comments on commit 714f0a3

Please sign in to comment.