From ed7ab506ddefc6a81c83a085e86a6d137bd3b25b Mon Sep 17 00:00:00 2001 From: Ryan Welcher Date: Thu, 6 Feb 2025 15:03:17 -0500 Subject: [PATCH] Update the actions and add the staging deploy. --- .github/workflows/deploy-to-staging.yml | 26 +++++++++++++++++++ .../{pull-request-actions.yml => linting.yml} | 1 - 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/deploy-to-staging.yml rename .github/workflows/{pull-request-actions.yml => linting.yml} (97%) diff --git a/.github/workflows/deploy-to-staging.yml b/.github/workflows/deploy-to-staging.yml new file mode 100644 index 0000000..489a20b --- /dev/null +++ b/.github/workflows/deploy-to-staging.yml @@ -0,0 +1,26 @@ +name: Deploy plugin to Production + +on: + push: + branches: + - staging + +jobs: + Linting: + uses: ./.github/workflows/linting.yml + + Deploy: + name: FTP-Deploy-Action + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 2 + - name: FTP-Deploy-Action + uses: Automattic/FTP-Deploy-Action@3.1.2 + with: + ftp-server: sftp://sftp.wp.com/htdocs/wp-content/plugins/custom-plugin/ + ftp-username: ${{ secrets.STAGING_SFTP_USER }} + ftp-password: ${{ secrets.STAGING_SFTP_PASSWORD }} + git-ftp-args: --insecure diff --git a/.github/workflows/pull-request-actions.yml b/.github/workflows/linting.yml similarity index 97% rename from .github/workflows/pull-request-actions.yml rename to .github/workflows/linting.yml index d2bf291..b30be33 100644 --- a/.github/workflows/pull-request-actions.yml +++ b/.github/workflows/linting.yml @@ -5,7 +5,6 @@ on: push: branches: - trunk - - staging jobs: php: