Merge pull request #3060 from skaut/wp-6.8 #2
This file contains hidden or 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
| name: "Asset & readme deployment" | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - "assets/**" | |
| - "src/txt/readme.txt" | |
| env: | |
| cache-version: 1 | |
| 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: "Install SVN" | |
| uses: awalsh128/[email protected] | |
| with: | |
| packages: subversion | |
| version: ${{ env.cache-version }} | |
| - name: "Move readme to root" | |
| run: | | |
| mv src/txt/readme.txt readme.txt | |
| - 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 }} |