Github Action for use in Workflows to deploy to GoDaddy Managed WooCommerce Stores
Name | Requirement | Description |
---|---|---|
MWCS_INTEGRATION_SECRET |
required | Authentication token |
MWCS_INTEGRATION_ID |
required | Unique id for the integration |
MWCS_APP_ID |
required | Id of the app you want to deploy to |
MWCS_DEPLOY_DEST |
required | Set the subdirectory to deploy to. examples: /httpdocs, /httpdocs/wp-content/plugins/my-plugin |
MWCS_WORKING_DIR |
optional | The directory that you want deployed, based on the build files' path. example: "${{github.workspace}}" |
on:
push:
jobs:
deploy:
name: Deploy to My MWCS App
runs-on: ubuntu-20.04
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Run deploy
uses: godaddy-wordpress/mwcs-deploy-action@v1
with:
MWCS_DEPLOY_DEST: "/httpdocs/wp-content/"
MWCS_INTEGRATION_SECRET: ${{secrets.MWCS_INTEGRATION_SECRET}}
MWCS_INTEGRATION_ID: ${{secrets.MWCS_INTEGRATION_ID}}
MWCS_APP_ID: ${{secrets.MWCS_APP_ID}}
MWCS_WORKING_DIR: "${{github.workspace}}" # use the files starting at the repository root