Skip to content

Commit

Permalink
Added an automatic assets and readme update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
marekdedic committed Jan 6, 2025
1 parent bdd3d8c commit 9617dc7
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/asset-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "Asset & readme deployment"
on:
push:
branches:
- master
paths:
- "assets/**"
- "src/txt/readme.txt"
jobs:
deploy:
name: "Upload assets & readme to wordpress.org"
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v4

- name: Install SVN
run: |
sudo apt-get update
sudo apt-get install subversion
- name: WordPress Deploy
id: deploy
uses: 10up/[email protected]
env:
ASSETS_DIR: assets
IGNORE_OTHER_FILES: true
README_NAME: "src/txt/readme.txt"
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}

0 comments on commit 9617dc7

Please sign in to comment.