Merge pull request #9 from CheesiestMaster/master #2
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: Install PHP Repo | |
on: | |
push: | |
branches: | |
- master # Replace with your repository's default branch | |
workflow_dispatch: # Add this trigger | |
inputs: # Define inputs for manual triggering (optional) | |
environment: | |
description: 'Environment to deploy to' | |
required: true | |
default: 'production' | |
jobs: | |
deploy: | |
runs-on: self-hosted # This ensures that the workflow runs on your local runner | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
- name: Install PHP Repository | |
run: | | |
# Clone the PHP repository to /var/www/chores | |
sudo git clone https://github.com/JonD-libera/chores.git /var/www/chores | |
# You can add more steps for configuration, dependencies, or other tasks as needed |