Plugin README GitHub link update (#154) #125
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: | |
- master | |
- develop | |
workflow_dispatch: | |
name: Deploy on Push | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: high-performance | |
steps: | |
- name: Own the dir if not owned | |
shell: bash | |
run: | | |
echo "Current working dir: '$(pwd)'" | |
echo 'Going to own a dir above the working dir.' | |
bash -c "sudo chown -R $(whoami):$(whoami) \"$(dirname '${{ github.workspace }}')\"" | |
- uses: actions/checkout@v4 | |
- name: Get node version | |
id: node-version | |
run: | | |
cd '${{ github.workspace }}' | |
NODE_VERSION="$(cat .nvmrc)" | |
echo "node_version=${NODE_VERSION}" >> "$GITHUB_ENV" | |
- name: Deploy | |
uses: rtcamp/action-deploy-wordpress@master | |
env: | |
SSH_PRIVATE_KEY: ${{ secrets.ED_DEPLOYMENT_KEY }} | |
NODE_VERISON: "${{ env.node_version }}" | |
NODE_BUILD_COMMAND: 'npm i && npm run build:prod && composer install --no-dev --optimize-autoloader' | |
- name: Cleanup | |
if: always() | |
uses: rtcamp/action-cleanup@master |