Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
Create staging_workshop.yml (#94)
Browse files Browse the repository at this point in the history
* Create staging_workshop.yml

Adding a deploy action on changes to /trunk for https://twentytwentytwo-trunk.mystagingwebsite.com/

* Correct destination folder

* Update test site deploy action name

Co-authored-by: Jeff Ong <jonger4@gmail.com>

Co-authored-by: Jeff Ong <jonger4@gmail.com>
  • Loading branch information
pbking and jffng authored Oct 13, 2021
1 parent 7a11914 commit 98f10dd
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/staging_workshop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Deploy to Test Site

on:
# Triggers the workflow only for the trunk branch
push:
branches: [ trunk ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Deploy-Theme
uses: SamKirkland/FTP-Deploy-Action@3.1.1
with:
ftp-server: sftp://sftp.pressable.com:22/htdocs/wp-content/themes/twentytwentytwo/
ftp-username: ${{ secrets.STAGING_USER }}
ftp-password: ${{ secrets.STAGING_PASSWORD }}
git-ftp-args: --insecure
local-dir: ./

0 comments on commit 98f10dd

Please sign in to comment.