Skip to content
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

Assets: Add README.md about syncing #68128

Merged
merged 10 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/sync-assets-to-plugin-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
branches:
- trunk
paths:
- assets/**
- 'assets/**'
- '!assets/README.md'
ockham marked this conversation as resolved.
Show resolved Hide resolved

jobs:
sync-assets:
Expand Down Expand Up @@ -35,7 +36,9 @@ jobs:
path: git

- name: Copy files from git checkout to svn working copy
run: cp -R git/assets/* assets
run: |
cp -R git/assets/* assets
rm assets/README.md
ockham marked this conversation as resolved.
Show resolved Hide resolved

- name: Commit the updated assets
working-directory: ./assets
Expand Down
5 changes: 5 additions & 0 deletions assets/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## Gutenberg Plugin Assets

The contents of this directory are synced to the [`assets/` directory of the Gutenberg plugin](https://plugins.trac.wordpress.org/browser/gutenberg/assets) in the WordPress.org plugin repository. This is done by a [GitHub Actions workflow](https://github.com/WordPress/gutenberg/actions/workflows/sync-assets-to-plugin-repo.yml) that is triggered whenever a file in this directory is changed (with the exception of this README, which is excluded from the sync).
ockham marked this conversation as resolved.
Show resolved Hide resolved

Since that workflow requires access to WP.org plugin repository credentials, it needs to be approved manually by a member of the Gutenberg Core team. If you don't have the necessary permissions, please ask someone in #core-editor.
ockham marked this conversation as resolved.
Show resolved Hide resolved
Loading