Repository navigation
fix(scaffolds): call wp-shared-workflows at @v1 and let .nvmrc pick Node #89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
aryanjasala
wants to merge
5
commits into
main
Choose a base branch
from
fix/scaffold-workflow-refs
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
7f41252
fix(scaffolds): call wp-shared-workflows at @v1 and let .nvmrc pick Node
aryanjasala 6d7c074
fix(scaffolds): make ci/cd-wporg deploy for real and test every CI sc…
aryanjasala c0fcb5c
fix(scaffolds): run release:zip through the scoped package name
aryanjasala 22a9121
Merge remote-tracking branch 'origin/main' into fix/scaffold-workflow…
aryanjasala 3797e96
Merge remote-tracking branch 'origin/main' into fix/scaffold-workflow…
aryanjasala File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 28 additions & 4 deletions
32
node-packages/wp-tooling/scaffolds/ci/cd-wporg/templates/cd-wporg.yml.mustache
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,38 @@ | ||
| name: Deploy to WordPress.org | ||
|
|
||
| # Scaffolded by @rtcamp/wp-tooling. | ||
| # Builds and packages the plugin, then deploys it to WordPress.org SVN on each | ||
| # published GitHub release, with the reusable ci-build.yml and cd-wp-org.yml from | ||
| # rtCamp/wp-shared-workflows. | ||
| # | ||
| # The release tag (a leading v is stripped) must match readme.txt's Stable tag. | ||
| # Needs the WPORG_USERNAME and WPORG_PASSWORD repository secrets. | ||
|
|
||
| on: | ||
| release: | ||
| types: [published] | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| build: | ||
| uses: rtCamp/wp-shared-workflows/.github/workflows/ci-build.yml@{{wsw_ref}} | ||
| with: | ||
| install-composer-deps: true | ||
| build-command: '{{build_command}}' | ||
| upload-artifact: true | ||
| artifact-name: wporg-package | ||
| artifact-path: dist/plugin | ||
|
|
||
|
|
||
| deploy: | ||
| uses: rtCamp/wp-shared-workflows/.github/workflows/cd-wp-org.yml@v1.0.0 | ||
| needs: build | ||
| uses: rtCamp/wp-shared-workflows/.github/workflows/cd-wp-org.yml@{{wsw_ref}} | ||
| with: | ||
| plugin-slug: {{plugin_slug}} | ||
| slug: {{plugin_slug}} | ||
| tag: ${{ github.event.release.tag_name }} | ||
| artifact-name: wporg-package | ||
| assets-path: {{assets_path}} | ||
| secrets: | ||
| svn-username: ${{ secrets.WPORG_USERNAME }} | ||
| svn-password: ${{ secrets.WPORG_PASSWORD }} | ||
| WP_ORG_USERNAME: ${{ secrets.WPORG_USERNAME }} | ||
| WP_ORG_PASSWORD: ${{ secrets.WPORG_PASSWORD }} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with
--build_command="npm run build && cp 'readme.txt' dist/plugin/"the renderedcd-wporg.ymldoesn't parse (actionlint:could not parse as YAML: did not find expected key). The default command renders fine because it has no'.A block scalar avoids escaping altogether, since YAML takes the line as written, so
',"and#are all safe. I checked that the default and a command containing all three render valid YAML with the exact command.