Skip to content

Commit

Permalink
Merge pull request #17 from a8cteam51/add/dotorg-deploy-workflow
Browse files Browse the repository at this point in the history
Initial dotorg deploy workflows
  • Loading branch information
nickpagz authored Aug 17, 2024
2 parents 7ac15d3 + 401d1bc commit 525e1e2
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/.github export-ignore
/.wordpress-org export-ignore
/node_modules export-ignore

/.* export-ignore
/composer.lock export-ignore
/package-lock.json export-ignore
/package.json export-ignore
/README.md export-ignore
27 changes: 27 additions & 0 deletions .github/workflows/push-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Deploy to WordPress.org

on:
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Install Composer Dependencies
run: composer install --no-dev

- name: Install Node Modules and Build Assets
run: |
npm install
npm run build
- name: WordPress Plugin Deploy
uses: 10up/action-wordpress-plugin-deploy@stable
env:
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SLUG: query-loop-load-more
DRY_RUN: true

0 comments on commit 525e1e2

Please sign in to comment.