Merge pull request #16 from peterwilsoncc/fix/15-send-deindexed-urls-… #28
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: Plugin asset/readme update | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| update_assets: | |
| name: Push asset update to WordPress.org | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@master | |
| - name: Install Subversion. | |
| run: | | |
| # Check if SVN is installed, if not install it. | |
| if ! command -v svn &> /dev/null | |
| then | |
| sudo apt-get update -y | |
| sudo apt-get install -y subversion | |
| fi | |
| - name: Remove readme.md from WordPress.org deploy. | |
| run: | | |
| git rm readme.md | |
| git config --global user.email "[email protected]" | |
| git config --global user.name "10upbot on GitHub" | |
| git commit -m "Remove readme.md for WordPress.org deploy" | |
| - name: Create .wordpress-org directory if it doesn't exist. | |
| run: mkdir -p .wordpress-org | |
| - name: WordPress.org plugin asset/readme update | |
| uses: 10up/action-wordpress-plugin-asset-update@stable | |
| env: | |
| SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} | |
| SVN_USERNAME: ${{ secrets.SVN_USERNAME }} |