Skip to content

Commit

Permalink
- add workflow to deploy WPGraphQL Smart Cache to the WordPress.org repo
Browse files Browse the repository at this point in the history
- add .gitattributes and .distignore files to ignore files from being deployed
  • Loading branch information
jasonbahl committed Dec 2, 2022
1 parent be3e05a commit 529aab0
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .distignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@
.gitignore
.github
.gitlab-ci.yml
.idea
.travis.yml
.DS_Store
.vscode
.wordpress-org
Thumbs.db
behat.yml
bitbucket-pipelines.yml
Expand Down Expand Up @@ -40,3 +43,23 @@ node_modules
*.sql
*.tar.gz
*.zip
/docs
/plugin-build
/.log
.env
.env.dist
phpcs.xml
phpstan.neon.dist
phpunit.xml.dist
README.md
docker-compose.yml
codeception.dist.yml
codeception.yml
composer.json
composer.lock
c3.php
CHANGELOG.md
.gitattributes
.gitignore
/docker
/docker-output
33 changes: 33 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
.github export-ignore
.git export-ignore
.log export-ignore
.coveralls export-ignore
.dockerignore export-ignore
.gitattributes export-ignore
.gitignore export-ignore
/bin export-ignore
/plugin-build export-ignore
/docs export-ignore
/img export-ignore
/phpstan export-ignore
/tests export-ignore
/docker export-ignore
/docs export-ignore
/phpcs.xml export-ignore
/phpunit.xml.dist export-ignore
/codeception.dist.yml export-ignore
.coveralls.yml export-ignore
.dockerignore export-ignore
.env export-ignore
.env.dist export-ignore
.gitattributes export-ignore
.github_changelog_generator export-ignore
/c3.php export-ignore
/docker-compose.yml export-ignore
/netlify.toml export-ignore
/node_modules export-ignore
/phpstan export-ignore
/phpstan.neon.dist export-ignore
/schema.graphql export-ignore
/node_modules export-ignore
/artifacts export-ignore
28 changes: 28 additions & 0 deletions .github/workflows/deploy-to-wordpress.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Deploy to WordPress.org
on:
release:
types: [ published ]
jobs:
tag:
name: New release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
extensions: mbstring, intl
tools: composer
- name: Install PHP dependencies
run: |
composer install --no-dev --optimize-autoloader
- name: WordPress Plugin Deploy
uses: 10up/action-wordpress-plugin-deploy@stable
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SLUG: wp-graphql-smart-cache

0 comments on commit 529aab0

Please sign in to comment.