File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ .git/
2+ .github/
3+ node_modules/
4+ .gitignore
5+ .deployignore
6+ package.json
7+ package-lock.json
8+ composer.json
9+ composer.lock
10+ webpack.config.js
11+ .eslintrc.js
12+ .phpcs.xml.dist
13+ .stylelintrc.json
14+ tests/
15+ .nvmrc
16+ .editorconfig
17+ webpack.config.js
18+ wp-plugin-version-updater.js
19+ .vscode
20+ *.code-workspace
21+ .gitattributes
Original file line number Diff line number Diff line change 22
33[ description ]
44
5- ## QA
6-
7- ### Links to relevant issues
8-
9- - [ Link to Issue] ( https://example.com )
10-
11- ### Links to deployed, scaffolded demo
12-
13- - [ Link to Demo] ( https://example.com )
14-
15- ### Screenshots/video
16-
17- - [ Link to Video] ( https://example.com )
18-
195## Tests
206
21- ### Does this have tests?
22-
23- - [ ] Yes
24- - [ ] No, this doesn't need tests because...
25- - [ ] No, I need help figuring out how to write the tests.
7+ [ instructions and what to expect ]
Original file line number Diff line number Diff line change 55 tags :
66 - ' v*.*.*'
77 - ' v*.*.*-rc.*'
8-
8+ workflow_dispatch :
9+
910permissions :
1011 contents : write
1112
1213jobs :
13- deploy :
14+ build :
1415 runs-on : ubuntu-latest
1516
1617 steps :
1920 with :
2021 node-version : 20
2122 cache : ' npm'
22-
23+ - uses : webfactory/ssh-agent@v0.8.0
24+ with :
25+ ssh-private-key : ${{ secrets.PANTHEON_SSH_KEY }}
26+
2327 - name : Install Composer dependencies
2428 run : |
2529 composer install --optimize-autoloader --ignore-platform-reqs --no-dev
3842 with :
3943 files : ucsc-custom-functionality.zip
4044 generate_release_notes : true
45+
46+ - name : Create plugin archive
47+ run : |
48+ # Create a clean copy of your plugin
49+ mkdir -p deploy/ucsc-custom-functionality
50+ rsync -av --exclude-from='.deployignore' . deploy/ucsc-custom-functionality/
51+
52+ - name : Clone Pantheon repository
53+ run : |
54+ git clone ssh://codeserver.dev.${{ secrets.PANTHEON_SITE_UUID }}@codeserver.dev.${{ secrets.PANTHEON_SITE_UUID }}.drush.in:2222/~/repository.git pantheon-site
55+ cd pantheon-site
56+ git checkout master # or your target branch
57+
58+ - name : Deploy plugin to Pantheon
59+ run : |
60+ cd pantheon-site
61+
62+ # Remove old plugin version if it exists
63+ rm -rf wp-content/plugins/ucsc-custom-functionality
64+
65+ # Copy new plugin version
66+ cp -r ../deploy/ucsc-custom-functionality wp-content/plugins/
67+
68+ # Configure git
69+ git config user.email "action@github.com"
70+ git config user.name "GitHub Action"
71+
72+ # Commit and push changes
73+ git add .
74+ git commit -m "Deploy plugin ucsc-custom-functionality-${{ github.event.release.tag_name || github.sha }}" || exit 0
75+ git push origin master
You can’t perform that action at this time.
0 commit comments