-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Add 10UP Deploy #2469
base: develop
Are you sure you want to change the base?
chore: Add 10UP Deploy #2469
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/.wordpress-org | ||
/.git | ||
/.github | ||
/node_modules | ||
/src | ||
/tests | ||
/bin | ||
/docs | ||
/build | ||
/.idea | ||
/.vscode | ||
/assets/src | ||
|
||
.distignore | ||
.gitignore | ||
/**/.DS_Store | ||
/**/*.LICENCE.txt | ||
package.json | ||
package-lock.json | ||
composer.json | ||
composer.lock | ||
README.md | ||
CHANGELOG.md | ||
LICENSE | ||
phpcs.xml.dist | ||
phpunit.xml.dist | ||
phpunit.xml | ||
.editorconfig | ||
.eslintrc | ||
.php_cs | ||
.phpunit.result.cache | ||
.prettierrc.js | ||
appsero.json | ||
CONTRIBUTING.md | ||
DEVELOPER.md | ||
event.json | ||
postcss.config.js | ||
webpack.config.js | ||
tailwind.config.js | ||
/ |
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,50 @@ | ||||||||||||||||||||||||||
name: Deploy and Release Plugin to WP.org | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
on: | ||||||||||||||||||||||||||
push: | ||||||||||||||||||||||||||
tags: | ||||||||||||||||||||||||||
- "*" | ||||||||||||||||||||||||||
jobs: | ||||||||||||||||||||||||||
releaseToWPOrg: | ||||||||||||||||||||||||||
name: Release to WordPress.org | ||||||||||||||||||||||||||
runs-on: ubuntu-latest | ||||||||||||||||||||||||||
steps: | ||||||||||||||||||||||||||
- name: Checkout code | ||||||||||||||||||||||||||
uses: actions/checkout@v2 | ||||||||||||||||||||||||||
- name: Setup PHP 7.4 | ||||||||||||||||||||||||||
uses: shivammathur/setup-php@v2 | ||||||||||||||||||||||||||
with: | ||||||||||||||||||||||||||
php-version: '7.4' | ||||||||||||||||||||||||||
coverage: none | ||||||||||||||||||||||||||
tools: composer:v2 | ||||||||||||||||||||||||||
Comment on lines
+14
to
+19
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Update PHP version to supported release PHP 7.4 has reached end of life. Consider updating to a supported PHP version (8.1 or 8.2) for security and performance benefits. - name: Setup PHP 7.4
uses: shivammathur/setup-php@v2
with:
- php-version: '7.4'
+ php-version: '8.1'
coverage: none
tools: composer:v2 📝 Committable suggestion
Suggested change
|
||||||||||||||||||||||||||
- name: Build | ||||||||||||||||||||||||||
run: | | ||||||||||||||||||||||||||
composer install --no-dev | ||||||||||||||||||||||||||
npm install | ||||||||||||||||||||||||||
npm run build | ||||||||||||||||||||||||||
- name: Install SVN ( Subversion ) | ||||||||||||||||||||||||||
run: | | ||||||||||||||||||||||||||
sudo apt-get update | ||||||||||||||||||||||||||
sudo apt-get install subversion | ||||||||||||||||||||||||||
- name: WordPress Plugin Deploy | ||||||||||||||||||||||||||
id: deploy | ||||||||||||||||||||||||||
uses: 10up/action-wordpress-plugin-deploy@stable | ||||||||||||||||||||||||||
with: | ||||||||||||||||||||||||||
generate-zip: true | ||||||||||||||||||||||||||
env: | ||||||||||||||||||||||||||
SVN_USERNAME: ${{ secrets.SVN_USERNAME }} | ||||||||||||||||||||||||||
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} | ||||||||||||||||||||||||||
SLUG: dokan-lite | ||||||||||||||||||||||||||
- 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 }} | ||||||||||||||||||||||||||
IGNORE_OTHER_FILES: true | ||||||||||||||||||||||||||
SLUG: dokan-lite | ||||||||||||||||||||||||||
- name: Create GitHub release | ||||||||||||||||||||||||||
uses: softprops/action-gh-release@v1 | ||||||||||||||||||||||||||
with: | ||||||||||||||||||||||||||
files: ${{github.workspace}}/${{ github.event.repository.name }}.zip | ||||||||||||||||||||||||||
env: | ||||||||||||||||||||||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||||||||||||||||||||||||
Comment on lines
+45
to
+50
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Update GitHub release action to latest version The - name: Create GitHub release
- uses: softprops/action-gh-release@v1
+ uses: softprops/action-gh-release@v2
with:
files: ${{github.workspace}}/${{ github.event.repository.name }}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
🧰 Tools🪛 actionlint (1.7.4)46-46: the runner of "softprops/action-gh-release@v1" action is too old to run on GitHub Actions. update the action's version to fix this issue (action) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update checkout action to latest version
The
actions/checkout@v2
is outdated. Update to the latest stable version to ensure security and compatibility.📝 Committable suggestion
🧰 Tools
🪛 actionlint (1.7.4)
13-13: the runner of "actions/checkout@v2" action is too old to run on GitHub Actions. update the action's version to fix this issue
(action)