Skip to content

chore: Update changelog and POT file for 1.9.0 (#1851) #1000

chore: Update changelog and POT file for 1.9.0 (#1851)

chore: Update changelog and POT file for 1.9.0 (#1851) #1000

on:
push:
branches:
# - main # Paused: deployment to easydam.rt.gw (godam.rt.gw) is temporarily disabled for woo
- develop
workflow_dispatch:
name: Deploy on Push
permissions:
contents: read
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
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@v6
- 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_VERSION: "${{ 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