Merge pull request #14 from rtCamp/deployment_branch_fix #1
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
on: | |
push: | |
branches: | |
- develop | |
- main | |
name: Deploy and Slack Notification | |
jobs: | |
deploy: | |
name: Deploy | |
# Change below line to: `runs-on: ubuntu-latest` if not using self-hosted runners or if it is a public repo. | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Deploy | |
uses: rtCamp/action-deploy-wordpress@master | |
env: | |
SSH_PRIVATE_KEY: ${{ secrets.ED_DEPLOYMENT_KEY }} | |
WP_VERSION: latest | |
MU_PLUGINS_URL: vip | |
- name: Slack Notification | |
uses: rtCamp/action-slack-notify@master | |
env: | |
SLACK_CHANNEL: test | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | |
- name: Cleanup | |
if: ${{ always() }} | |
uses: rtCamp/action-cleanup@master |