Skip to content

Commit

Permalink
Merge pull request #101 from Automattic/add/wporg-deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
GaryJones authored Aug 9, 2024
2 parents e62c809 + 5e2111e commit bcf16fa
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 212 deletions.
19 changes: 19 additions & 0 deletions .distignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Specify which files should not be included in the push to WordPress.org.
# These are all development files and directories.
# The deploy Action will use rsync + .distignore if the .distignore exists,
# so it doesn't care what may or may not be ignored via .gitignore.

/.github/
/bin/
/tests/
/.distignore
/.editorconfig
/.gitattributes
/.gitignore
/.phpcs.xml.dist
/CHANGELOG.md
/composer.json
/mixtape.json
/package.json
/package-lock.json
/phpunit.xml.dist
47 changes: 33 additions & 14 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,14 +1,33 @@
/.editorconfig export-ignore
/.gitattributes export-ignore
/.github/ export-ignore
/.gitignore export-ignore
/.phpcs.xml.dist export-ignore
/bin/ export-ignore
/mixtape.json export-ignore
/package.json export-ignore
/phpunit.xml.dist export-ignore
/screenshot-1.png export-ignore
/tests/ export-ignore
/zone-display.png export-ignore
/zone-widget.png export-ignore
/zones.png export-ignore
# Exclude these files from GitHub release archives.
# This will also make them unavailable when using Composer with `--prefer-dist`.
# If you develop for this plugin using Composer, use `--prefer-source`.
# https://blog.madewithlove.be/post/gitattributes/

/.github/ export-ignore
/.wordpress-org/ export-ignore
/node_modules/ export-ignore
/bin/ export-ignore
/tests/ export-ignore

/.distignore export-ignore
/.editorconfig export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.phpcs.xml.dist export-ignore
/CHANGELOG.md export-ignore
/composer.json export-ignore
/mixtape.json export-ignore
/package.json export-ignore
/package-lock.json export-ignore
/phpunit.xml.dist export-ignore

# Auto detect text files and perform LF normalization
# https://pablorsk.medium.com/be-a-git-ninja-the-gitattributes-file-e58c07c9e915

* text=auto

# The above will handle all files NOT found below

*.md text
*.php text
*.inc text
19 changes: 19 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Deploy to WordPress.org
on:
release:
types: [ released ]
# Allow manual triggering of the workflow.
workflow_dispatch:
jobs:
release:
name: New release to WordPress.org
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Push to WordPress.org
uses: 10up/action-wordpress-plugin-deploy@stable
env:
SLUG: zoninator
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
205 changes: 7 additions & 198 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,198 +1,7 @@
tests/vendor
/nbproject/private/
nbproject

# <genignore windows>

# Windows thumbnail cache files
Thumbs.db
ehthumbs.db
ehthumbs_vista.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msm
*.msp

# Windows shortcuts
*.lnk

# </genignore windows>

# <genignore node>

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# </genignore node>

# <genignore macos>

*.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

# </genignore macos>

# <genignore c>

# Prerequisites
*.d

# Object files
*.o
*.ko
*.obj
*.elf

# Linker output
*.ilk
*.map
*.exp

# Precompiled Headers
*.gch
*.pch

# Libraries
*.lib
*.a
*.la
*.lo

# Shared objects (inc. Windows DLLs)
*.dll
*.so
*.so.*
*.dylib

# Executables
*.exe
*.out
*.app
*.i*86
*.x86_64
*.hex

# Debug files
*.dSYM/
*.su
*.idb
*.pdb

# Kernel Module Compile Results
*.mod*
*.cmd
modules.order
Module.symvers
Mkfile.old
dkms.conf

# </genignore c>

# <genignore linux>

*~

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*

# </genignore linux>

tmp
composer.lock
/vendor
/.phpunit.cache/
/node_modules/
/vendor/
/.phpcs.xml
/composer.lock
/phpcs.xml
/phpunit.xml

0 comments on commit bcf16fa

Please sign in to comment.