Automation for actions when a new tag is created #16
Workflow file for this run
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: Package and Upload Plugin | |
| on: | |
| push: | |
| tags: | |
| - 'v*.*.*' | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: composer install | |
| - name: Run PHP_CodeSniffer | |
| run: vendor/bin/phpcs proxy-aware-https-fix.php --standard=WordPress --report=full | |
| continue-on-error: true | |
| - name: Auto-fix with PHPCBF | |
| run: vendor/bin/phpcbf proxy-aware-https-fix.php --standard=WordPress | |
| - name: Upload fixed file | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: fixed-php | |
| path: proxy-aware-https-fix.php | |
| - name: Zip plugin | |
| run: zip -r proxy-aware-https-fix.zip proxy-aware-https-fix.php README.md LICENSE CHANGELOG.md composer.lock | |
| - name: Upload to GitHub Release | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| files: proxy-aware-https-fix.zip | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |