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 cb42744 commit 81b6de1
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/asset-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: "CI"
on:
push:
branches:
- master
paths:
- "assets/**"
- "src/txt/readme.txt"
jobs:
build:
name: "Build"
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]
with:
ASSETS_DIR: assets
README_NAME: "src/txt/readme.txt"
IGNORE_OTHER_FILES: true
env:
BUILD_DIR: dist
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}

0 comments on commit 81b6de1

Please sign in to comment.