Skip to content

Commit

Permalink
Automatically deploying assets & readme
Browse files Browse the repository at this point in the history
  • Loading branch information
marekdedic committed Jan 6, 2025
1 parent 5fbd94d commit df6f581
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/asset-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
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
with:
sparse-checkout: |
assets
src/txt/readme.txt
- name: "Move readme to root"
run: |
mv src/txt/readme.txt readme.txt
- 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
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}

0 comments on commit df6f581

Please sign in to comment.