Skip to content

rm stray single quotes and improve file path handling reliability wit… #21

rm stray single quotes and improve file path handling reliability wit…

rm stray single quotes and improve file path handling reliability wit… #21

Workflow file for this run

name: Publish Release
on:
push:
tags:
- "v*"
jobs:
tag:
name: Publish Release
runs-on: ubuntu-latest
environment:
name: production
url: https://purpleturtlecreative.com/completionist/plugin-info/
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build - Install
shell: bash
run: ./build_install.sh
- name: Bundle Package
shell: bash
run: ./bundle.sh
- name: Publish WordPress Plugin Release
id: wporg_release
uses: 10up/action-wordpress-plugin-deploy@stable
with:
dry-run: ${{ contains(github.ref_name, '-rc') }}
generate-zip: false
env:
SVN_USERNAME: ${{ secrets.WPORG_SVN_USERNAME }}
SVN_PASSWORD: ${{ secrets.WPORG_SVN_PASSWORD }}
- name: Upload to PTC Resources Server
if: steps.wporg_release.outcome == 'success' && ${{ contains(github.ref_name, '-rc') }} != true
env:
remote: "github@${{ secrets.PTC_PROD_HOSTNAME }}"
destination: "${{ secrets.PTC_RESOURCES_SERVER_PATH }}/${{ env.PTC_PLUGIN_ZIP_FILE_BASENAME }}.zip"
run: |
echo "${{ secrets.PTC_GITHUB_SSH_KEY }}" > deploy_key
chmod 600 ./deploy_key
scp -i "./deploy_key" -o "StrictHostKeyChecking=no" "${{ env.PTC_PLUGIN_ZIP_FILE }}" "${{ env.remote }}:${{ env.destination }}"
ssh -i "./deploy_key" -o "StrictHostKeyChecking=no" "${{ env.remote }}" 'chmod 775 "${{ env.destination }}"; chgrp www-data "${{ env.destination }}"' || true