-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from threadi/feature/addGitHubActionForRelease
added GitHub action for Release (solves #48)
- Loading branch information
Showing
6 changed files
with
183 additions
and
46 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Build release zip | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
name: Build release zip | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Run package installs and builds | ||
run: | | ||
composer install | ||
composer update | ||
npm i | ||
npm run build | ||
- name: Run WordPress Coding Standard fixes | ||
run: vendor/bin/phpcbf --extensions=php --ignore=*/vendor/*,*/attributes/*,*/node_modules/*,*/svn/*,*/releases/* --standard=ruleset.xml . | ||
|
||
- name: Run WordPress Coding Standard checks | ||
run: vendor/bin/phpcs --extensions=php --ignore=*/vendor/*,*/attributes/*,*/node_modules/*,*/svn/*,*/releases/* --standard=ruleset.xml . | ||
|
||
- name: Set version number | ||
uses: richardrigutins/replace-in-files@v2 | ||
with: | ||
files: 'play-audio-once.php' | ||
search-text: '@@VersionNumber@@' | ||
replacement-text: ${{ github.ref_name }} | ||
|
||
- name: Set version number 2 | ||
uses: richardrigutins/replace-in-files@v2 | ||
with: | ||
files: 'readme.txt' | ||
search-text: '@@VersionNumber@@' | ||
replacement-text: ${{ github.ref_name }} | ||
|
||
- name: ZIP plugin | ||
run: | | ||
rm -fr assets | ||
rm -fr build | ||
rm changelog.md | ||
rm package.json | ||
rm package-lock.json | ||
rm ruleset.xml | ||
cd .. | ||
zip -r -q ${{ github.event.repository.name }}_${{ github.ref_name }}.zip ${{ github.event.repository.name }}/* -x "*/.git/*" "*/.github/*" "*/phpcs.xml" "*/composer.json" "*/composer.lock" "*/readme.md" "*/.gitignore" "*/vendor/*" "*/node_modules/*" "*/svn/*" "*/releases/*" | ||
cp ${{ github.event.repository.name }}_${{ github.ref_name }}.zip ${{ github.event.repository.name }}/ | ||
- name: Create Release | ||
uses: softprops/action-gh-release@v2 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
files: ${{ github.event.repository.name }}_${{ github.ref_name }}.zip |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
# Changelog | ||
|
||
## [1.1.6] - 21.12.2024 | ||
|
||
### Added | ||
|
||
- Added GitHub action for releases | ||
|
||
### Changed | ||
|
||
- Moved changelog to GitHub | ||
|
||
## [1.1.5] - 06.11.2024 | ||
|
||
### Changed | ||
|
||
- Updated compatibility-flag for WordPress 6.7 | ||
- Updated dependencies (security fixes in them) | ||
|
||
## [1.1.4] - 16.03.2024 | ||
|
||
### Changed | ||
|
||
- Updated compatibility-flag for WordPress 6.5 | ||
- Updated dependencies (security fixes in them) | ||
|
||
## [1.1.3] - 26.11.2023 | ||
|
||
### Changed | ||
|
||
- Cleaned js-files | ||
- Updated dependencies (security fixes in them) | ||
## [1.1.2] - 21.10.2023 | ||
|
||
### Changed | ||
|
||
- Updated compatibility-flag for WordPress 6.4 | ||
- Updated dependencies | ||
- Compatible with WordPress Coding Standards 3.0 | ||
|
||
### Removed | ||
|
||
- Removed language files from release | ||
|
||
## [1.1.1] - 16.07.2023 | ||
|
||
### Changed | ||
|
||
- Optimized translation-handling during plugin-build | ||
- Compatible with WordPress Coding Standards | ||
- Updated compatibility-flag for WordPress 6.3 | ||
- Updated dependencies | ||
|
||
## [1.1.0] - 19.03.2023 | ||
|
||
### Added | ||
|
||
- Added translations for german (formal), spanisch and italian | ||
|
||
### Changed | ||
|
||
- Updated compatibility-flag for WordPress 6.2 | ||
- Updated dependencies | ||
- Cleanup repository | ||
|
||
### Fixed | ||
|
||
- Fixed setting of default value for our plugin-option | ||
|
||
## [1.0.3] - 16.07.2022 | ||
|
||
### Added | ||
|
||
- Added build-system in repository | ||
|
||
### Changed | ||
|
||
- Updated compatibility-flag for WordPress 6.0.1 | ||
|
||
## [1.0.2] - 21.05.2022 | ||
|
||
### Changed | ||
|
||
- Updated compatibility-flag for WordPress 6.0 | ||
|
||
## [1.0.1] - 15.04.2022 | ||
|
||
### Changed | ||
|
||
- Updated dependencies | ||
|
||
## [1.0.0] - 02.03.2022 | ||
|
||
### Added | ||
|
||
- Initial commit |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0"?> | ||
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="ImgurImageUpload" namespace="ImgurImageUpload\ImgurImageUpload" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd"> | ||
|
||
<description>Play Audio Once Coding Standards</description> | ||
|
||
<rule ref="WordPress-Docs"/> | ||
<rule ref="WordPress-Extra"/> | ||
<rule ref="WordPress"> | ||
<!-- Exclude direkt db query warnings --> | ||
<exclude name="WordPress.DB.DirectDatabaseQuery"/> | ||
<exclude name="WordPress.DB.PreparedSQL.NotPrepared"/> | ||
<!-- Excluded in favour to match PSR-4-namings of classes. --> | ||
<exclude name="WordPress.Files.FileName"/> | ||
<!-- Exclude override of globals --> | ||
<exclude name="WordPress.WP.GlobalVariablesOverride"/> | ||
</rule> | ||
|
||
</ruleset> |