diff --git a/.github/workflows/asset-update.yml b/.github/workflows/asset-update.yml new file mode 100644 index 00000000..add9630b --- /dev/null +++ b/.github/workflows/asset-update.yml @@ -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/action-wordpress-plugin-asset-update@2.1.3 + 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 }}