-
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 #4 from BracketSpace/feature/notification-v9-compat
feat: Notification v9 compatibility
- Loading branch information
Showing
75 changed files
with
94,328 additions
and
3,205 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 |
---|---|---|
|
@@ -7,7 +7,6 @@ build | |
node_modules | ||
src/assets | ||
tests | ||
vendor/typisttech | ||
.build-excludes | ||
.editorconfig | ||
.gitattributes | ||
|
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 |
---|---|---|
|
@@ -9,3 +9,7 @@ indent_style = tab | |
|
||
[{*.txt,wp-config-sample.php}] | ||
end_of_line = crlf | ||
|
||
[*.yml] | ||
indent_style = space | ||
indent_size = 2 |
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 |
---|---|---|
|
@@ -6,30 +6,25 @@ on: | |
- develop | ||
|
||
jobs: | ||
|
||
# Builds the package and creates artifact with dist files | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set PHP version | ||
run: sudo update-alternatives --set php /usr/bin/php7.4 | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Install OS dependencies | ||
run: sudo apt-get install zip -y | ||
- name: Setup variables | ||
id: vars | ||
run: | | ||
echo "::set-output name=composer-cache-path::$(composer config cache-files-dir)" | ||
- name: Cache Composer | ||
uses: actions/cache@v1 | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
path: ${{ steps.vars.outputs.composer-cache-path }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: ${{ runner.os }}-composer- | ||
php-version: '7.4' | ||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, mysql, mysqli, pdo_mysql, bcmath, soap, intl, gd, exif, iconv, imagick | ||
coverage: none | ||
- name: Install Composer dependencies | ||
run: composer install -o --no-dev --no-progress | ||
uses: "ramsey/composer-install@v2" | ||
with: | ||
composer-options: "--no-dev" | ||
- name: Run Strauss | ||
run: composer run-script prefix-namespaces-prod | ||
- name: Create build dir | ||
run: mkdir build | ||
- name: Copy files | ||
|
@@ -44,46 +39,5 @@ jobs: | |
- name: Upload artifact | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: build | ||
name: ${{ secrets.SLUG }}-dev | ||
path: build | ||
|
||
# Creates the dev package artifact from develop branch | ||
pack: | ||
name: Pack | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: Download artifact | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: build | ||
path: ${{ secrets.SLUG }} | ||
- name: Create archive | ||
run: | | ||
zip -rq ${{ secrets.SLUG }}-dev.zip ${{ secrets.SLUG }} | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: ${{ secrets.SLUG }}-dev | ||
path: ${{ secrets.SLUG }}-dev.zip | ||
|
||
# Uploads the develop package to internal repository | ||
upload: | ||
name: Upload to repo | ||
runs-on: ubuntu-latest | ||
needs: pack | ||
steps: | ||
- name: Download artifact | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: ${{ secrets.SLUG }}-dev | ||
path: . | ||
- name: Upload to repo | ||
uses: Pendect/[email protected] | ||
env: | ||
DEPLOY_KEY: ${{ secrets.PACKAGES_DEPLOY_KEY }} | ||
with: | ||
flags: '-avz' | ||
options: '--recursive ' | ||
src: '.' | ||
dest: '${{ secrets.BRACKETSPACE_REPO_RSYNC_URL }}${{ secrets.SLUG }}/' |
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 |
---|---|---|
|
@@ -12,24 +12,20 @@ jobs: | |
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set PHP version | ||
run: sudo update-alternatives --set php /usr/bin/php7.4 | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Install OS dependencies | ||
run: sudo apt-get install zip -y | ||
- name: Setup variables | ||
id: vars | ||
run: | | ||
echo "::set-output name=composer-cache-path::$(composer config cache-files-dir)" | ||
- name: Cache Composer | ||
uses: actions/cache@v1 | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
path: ${{ steps.vars.outputs.composer-cache-path }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: ${{ runner.os }}-composer- | ||
php-version: '7.4' | ||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, mysql, mysqli, pdo_mysql, bcmath, soap, intl, gd, exif, iconv, imagick | ||
coverage: none | ||
- name: Install Composer dependencies | ||
run: composer install -o --no-dev --no-progress | ||
uses: "ramsey/composer-install@v2" | ||
with: | ||
composer-options: "--no-dev" | ||
- name: Run Strauss | ||
run: composer run-script prefix-namespaces-prod | ||
- name: Create build dir | ||
run: mkdir build | ||
- name: Copy files | ||
|
@@ -71,49 +67,6 @@ jobs: | |
name: ${{ steps.vars.outputs.package-name }} | ||
path: ${{ steps.vars.outputs.package-name }}.zip | ||
|
||
# Uploads the stable package to internal repository | ||
upload: | ||
name: Upload to repo | ||
runs-on: ubuntu-latest | ||
needs: pack | ||
steps: | ||
- name: Setup variables | ||
id: vars | ||
run: | | ||
echo "::set-output name=package-name::${{ secrets.SLUG }}-${GITHUB_REF#refs/tags/}" | ||
- name: Download artifact | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: ${{ steps.vars.outputs.package-name }} | ||
path: . | ||
- name: Upload to repo | ||
uses: Pendect/[email protected] | ||
env: | ||
DEPLOY_KEY: ${{ secrets.PACKAGES_DEPLOY_KEY }} | ||
with: | ||
flags: '-avz' | ||
options: '--recursive ' | ||
src: '.' | ||
dest: '${{ secrets.BRACKETSPACE_REPO_RSYNC_URL }}${{ secrets.SLUG }}/' | ||
|
||
# Deploys the stable tag to WordPress.org repository | ||
wordpress-org-release: | ||
name: Release on WordPress.org | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: Download artifact | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: build | ||
path: . | ||
- name: Deploy to WordPress repository | ||
uses: 10up/[email protected] | ||
env: | ||
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} | ||
SVN_USERNAME: ${{ secrets.SVN_USERNAME }} | ||
SLUG: ${{ secrets.SLUG }} | ||
|
||
# Release on GitHub | ||
github-release: | ||
name: Release on GitHub | ||
|
@@ -127,12 +80,6 @@ jobs: | |
run: | | ||
echo "::set-output name=version::${GITHUB_REF#refs/tags/}" | ||
echo "::set-output name=package-name::${{ secrets.SLUG }}-${GITHUB_REF#refs/tags/}" | ||
- name: Parse changelog | ||
run: | | ||
START="= ${{ steps.vars.outputs.version }} =" | ||
END="= [0-9]+.[0-9]+.[0-9]+ =|==|\$" | ||
grep -oPz "(?s)${START}.*?\n\K.*?(?=${END})" changelog.txt > release-changelog.txt | ||
truncate -s-2 changelog.txt | ||
- name: Download artifact | ||
uses: actions/download-artifact@v1 | ||
with: | ||
|
@@ -141,7 +88,6 @@ jobs: | |
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
body_path: release-changelog.txt | ||
files: ${{ steps.vars.outputs.package-name }}.zip | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.