-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added an automatic assets and readme update workflow
- Loading branch information
1 parent
cb42744
commit 81b6de1
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |