aonach / ghactions-deploy
Deploy to servers via Github Actions + Deployer
Installs: 23 391
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 4
Forks: 0
Open Issues: 1
pkg:composer/aonach/ghactions-deploy
Requires
- deployer/deployer: ^6.5
- dev-php8
- v1.3.0
- v1.2.0
- v1.1.12
- v1.1.11
- v1.1.10
- v1.1.9
- v1.1.8
- v1.1.7
- v1.1.6
- v1.1.5
- v1.1.4
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.1
- v1.0.0
- dev-copy-vendors-dev
- dev-vendor-copy
- dev-skip-git-lfs
- dev-feature/skip-git-lfs
- dev-sub-task-time
- dev-task-timing-tracking
- dev-comment-out-hypernode
- dev-restoring-opcache
- dev-master
- dev-fail-patches
This package is auto-updated.
Last update: 2026-01-27 10:37:29 UTC
README
The repository contains Deployer configuration for Magento2 and example of Github Actions workflow. The workflow creates events on push into dev/test/master branches and initiate a deployment process to dev/test/master servers, correspondingly.
You need to follow this simple steps to integrate in your project:
-
Copy deploy.yml from the repo to .github/workflow folder
-
Copy hosts.yml to root folder and fill the file with your data
-
Copy deploy.php to root folder if you want to override some tasks
-
Create required DEPLOY_KEY secret in the settings on your repository, it will be used for connect to servers
-
Prepare shared folder on your servers:
- copy app/etc/env.php from current document root to #deploy_path#/shared/app/etc/env.php
- copy all media files from pub/media to #deploy_path#/shared/pub/media
-
Be sure all deployment steps are going right on servers (take care about composer/ssh keys)
-
Push a commit to dev/test/master branch!
Configuration
Git LFS
By default, Git LFS files are skipped during deployment (skip_lfs: true). This prevents large LFS objects (e.g., local database backups) from being downloaded to servers, saving both deployment time and disk space.
To disable this, set skip_lfs: false in your hosts.yml:
production: hostname: prod-server remote_user: deploy skip_lfs: false
Note: The skip_lfs option uses set('env', ...) to configure the GIT_LFS_SKIP_SMUDGE environment variable. If your project needs additional environment variables, add them inside the same closure in deploy.php rather than calling set('env', ...) separately, which would overwrite the LFS setting.
Related links:
https://help.github.com/en/github/automating-your-workflow-with-github-actions