Skip to content

Commit b774dbb

Browse files
author
Mayuko Moriyama
committed
Add a workflow to update WordPress.org assets without a release
Assets currently only reach WordPress.org when a release is published, so artwork committed to .wordpress-org/ stays invisible until the next version ships.
1 parent 2f2dec3 commit b774dbb

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/asset-update.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Update WordPress.org assets
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- '.wordpress-org/**'
9+
- 'README.md'
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
assets:
17+
name: Update assets on WordPress.org
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v4
22+
23+
- name: Setup PHP
24+
uses: shivammathur/setup-php@v2
25+
with:
26+
php-version: 7.4
27+
28+
- name: Generate readme.txt
29+
uses: tarosky/workflows/actions/wp-readme@main
30+
31+
- name: Update assets and readme on WordPress.org
32+
uses: 10up/action-wordpress-plugin-asset-update@stable
33+
env:
34+
SVN_USERNAME: ${{ secrets.WP_ORG_USERNAME_TAROSKY }}
35+
SVN_PASSWORD: ${{ secrets.WP_ORG_PASSWORD_TAROSKY }}

0 commit comments

Comments
 (0)