This file contains hidden or 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
# This GitHub workflow will build a WordPress Bedrock site and deploy it to a shared server (french one: O2Switch, but URLs can be adapted) using SSH | |
# Actions secrets are used to store sensitive information: | |
# - SSH_PRIVATE_KEY: The private key used to authenticate with the remote server | |
# - REMOTE_HOST: The hostname of the remote server | |
# - REMOTE_USER: The username used to authenticate with the remote server | |
# - REMOTE_PROD_TARGET: The path on the remote server where the site will be deployed to | |
# - REMOTE_PREPROD_TARGET: The path on the remote server where the site will be deployed to | |
# - URL_ENCODED_PASSWORD: The password used to authenticate with the remote server, URL encoded (e.g. using https://www.urlencoder.org/) | |
# Workflow triggers on pushes to the develop and master branches: | |
# - On the develop branch, the site is deployed to the preprod target |