Skip to content

Commit 9617dc7

Browse files
committed
Added an automatic assets and readme update workflow
1 parent bdd3d8c commit 9617dc7

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/asset-update.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: "Asset & readme deployment"
2+
on:
3+
push:
4+
branches:
5+
- master
6+
paths:
7+
- "assets/**"
8+
- "src/txt/readme.txt"
9+
jobs:
10+
deploy:
11+
name: "Upload assets & readme to wordpress.org"
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: "Checkout"
15+
uses: actions/checkout@v4
16+
17+
- name: Install SVN
18+
run: |
19+
sudo apt-get update
20+
sudo apt-get install subversion
21+
22+
- name: WordPress Deploy
23+
id: deploy
24+
uses: 10up/[email protected]
25+
env:
26+
ASSETS_DIR: assets
27+
IGNORE_OTHER_FILES: true
28+
README_NAME: "src/txt/readme.txt"
29+
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
30+
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}

0 commit comments

Comments
 (0)