Merge pull request #23 from drnecrotix/dependabot/github_actions/acti… #24
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 WordPress Plugin | |
| on: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| package: | |
| name: WordPress plugin ZIP | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Validate PHP syntax | |
| run: php -l wp-sso/wp-sso.php | |
| - name: Build plugin archive | |
| run: | | |
| mkdir -p build | |
| zip -r build/wp-sso.zip wp-sso -x '*.DS_Store' | |
| - name: Upload plugin artifact | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: wp-sso-wordpress-plugin | |
| path: build/wp-sso.zip | |
| if-no-files-found: error | |
| retention-days: 30 |