Skip to content

Commit

Permalink
Workflow added
Browse files Browse the repository at this point in the history
  • Loading branch information
lloc committed Nov 29, 2024
1 parent e3e79e5 commit 1b1efeb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ jobs:
tag:
name: New tag
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
attestations: write
timeout-minutes: 70
steps:
- name: Checkout project
uses: actions/checkout@v4
Expand All @@ -16,7 +21,14 @@ jobs:
run: composer run-script build
- name: WordPress Plugin Deploy
uses: 10up/action-wordpress-plugin-deploy@stable
id: deploy
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SLUG: multisite-language-switcher
with:
generate-zip: true
- name: Attest build provenance
uses: johnbillion/action-wordpress-plugin-attestation@0.5.0
with:
zip-path: ${{ steps.deploy.outputs.zip-path }}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"scripts": {
"test": "vendor/bin/phpunit",
"coverage": "php -d xdebug.mode=coverage vendor/bin/phpunit --coverage-html tests/coverage",
"coverage": "@php -d xdebug.mode=coverage vendor/bin/phpunit --coverage-html tests/coverage",
"analyze": "vendor/bin/phpstan analyze",
"playwright": "npx playwright test",
"php74": "phpcs -p ./*.php includes/ --standard=vendor/phpcompatibility/php-compatibility/PHPCompatibility --runtime-set testVersion 7.4",
Expand Down

0 comments on commit 1b1efeb

Please sign in to comment.