You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-63Lines changed: 6 additions & 63 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,70 +71,13 @@ If there are files or directories to be excluded from deployment, such as tests
71
71
72
72
## Example Workflow Files
73
73
74
-
To get started, you will want to copy the contents of one of these examples into `.github/workflows/deploy.yml` and push that to your repository. You are welcome to name the file something else, but it must be in that directory. The usage of `ubuntu-latest` is recommended for compatibility with required dependencies in this Action.
75
-
76
-
### Deploy on pushing a new tag
77
-
78
-
```yml
79
-
name: Deploy to WordPress.org
80
-
on:
81
-
push:
82
-
tags:
83
-
- "*"
84
-
jobs:
85
-
tag:
86
-
name: New tag
87
-
runs-on: ubuntu-latest
88
-
steps:
89
-
- uses: actions/checkout@master
90
-
- name: Build # Remove or modify this step as needed
91
-
run: |
92
-
npm install
93
-
npm run build
94
-
- name: WordPress Plugin Deploy
95
-
uses: 10up/action-wordpress-plugin-deploy@stable
96
-
env:
97
-
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
98
-
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
99
-
SLUG: my-super-cool-plugin # optional, remove if GitHub repo name matches SVN slug, including capitalization
100
-
```
74
+
To get started, you will want to copy the contents of one of [these examples](examples) into `.github/workflows/deploy.yml` and push that to your repository. You are welcome to name the file something else, but it must be in that directory. The usage of `ubuntu-latest` is recommended for compatibility with required dependencies in this Action.
101
75
102
-
### Deploy on publishing a new release and attach a ZIP file to the release
*[Deploy on publishing a new release and attach a ZIP file to the release](examples/deploy-on-publishing-a-new-release-and-attach-a-zip-file-to-the-release.yml)
79
+
*[Deploy on pushing a new tag](examples/deploy-on-pushing-a-new-tag.yml)
80
+
*[Deploy on pushing a new tag and create release with attached ZIP](examples/deploy-on-pushing-a-new-tag-and-create-release-with-attached-zip.yml)
0 commit comments