Removed composer.lock and added it to gitignore #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build & deploy | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.0.30' # Adjust the PHP version as needed | |
extensions: mbstring, intl, curl | |
tools: composer | |
- name: Install Composer Dependencies | |
run: composer install --no-dev --optimize-autoloader | |
- name: Deploy | |
uses: easingthemes/[email protected] | |
env: | |
SSH_PRIVATE_KEY: ${{ secrets.DEPLOYUSER_SSH_KEY }} | |
REMOTE_HOST: ${{ secrets.DEPLOYUSER_HOST }} | |
REMOTE_USER: ${{ secrets.DEPLOYUSER_USER }} | |
REMOTE_PORT: ${{ secrets.DEPLOYUSER_PORT }} | |
TARGET: "/srv/www/www.asteriski.fi/wp-content/plugins/wp-asteriski-calendar/" | |
EXCLUDE: "/.git/" | |
with: | |
args: "-avz --delete --chmod=ug=rwx,o=rx --chown=github-deploy:www-data --progress" |