-
Notifications
You must be signed in to change notification settings - Fork 2
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 #277 from ashleyfae/release/1.3
Release/1.3
- Loading branch information
Showing
250 changed files
with
11,876 additions
and
8,967 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,18 @@ | ||
* text=auto | ||
.github/ export-ignore | ||
.gitignore export-ignore | ||
.gitattributes export-ignore | ||
|
||
.phpstorm.meta.php export-ignore | ||
|
||
tests/ export-ignore | ||
phpunit.xml export-ignore | ||
|
||
composer.json export-ignore | ||
composer.lock export-ignore | ||
|
||
mix-manifest.json export-ignore | ||
package.json export-ignore | ||
package-lock.json export-ignore | ||
webpack.mix.js export-ignore | ||
webpack.config.js export-ignore |
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,63 @@ | ||
# @link https://leoloso.com/posts/github-action-to-release-wp-plugin/ | ||
# Creates a zip file containing the installable plugin. | ||
# Steps: | ||
# - Checkout the source code. | ||
# - Run "composer install" to download all dependencies. | ||
# - Use `git archive` to create a zip file. | ||
# - Manually add the `vendor/` directory to that zip file. (Little gross.) | ||
# - Upload the .zip file as an artifact to the action. | ||
# - Upload the .zip file to the release, for download. | ||
|
||
name: Generate Installable Plugin, and Upload as Release Asset | ||
|
||
# Controls wh en the workflow will run. | ||
on: | ||
# Triggers when a new release is published. | ||
release: | ||
types: [published] | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel. | ||
jobs: | ||
build: | ||
name: Upload Release Asset | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job. | ||
steps: | ||
# Checks out the source code. | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
# Runs "composer install" and creates the build directory. | ||
- name: Build project | ||
run: | | ||
composer install --no-dev --optimize-autoloader | ||
mkdir build | ||
mkdir ${{ github.event.repository.name }} | ||
mv vendor/ ${{ github.event.repository.name }}/ | ||
# Create the zip file. Note that this won't include vendor/, we have to add that next. | ||
- name: Create artifact | ||
run: | | ||
git archive --prefix ${{ github.event.repository.name }}/ -o build/${{ github.event.repository.name }}-${{ github.event.release.name }}.zip HEAD | ||
# Manually add the vendor/ directory into the zip file. | ||
- name: Add vendor files | ||
uses: montudor/action-zip@v0.1.0 | ||
with: | ||
args: zip -ur build/${{ github.event.repository.name }}-${{ github.event.release.name }}.zip ${{ github.event.repository.name }}/ | ||
|
||
# Uploads the zip file to the action. | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ${{ github.event.repository.name }}-${{ github.event.release.name }} | ||
path: build/${{ github.event.repository.name }}-${{ github.event.release.name }}.zip | ||
|
||
# Attaches the zip file to the release. | ||
- name: Upload to release | ||
uses: JasonEtco/upload-to-release@master | ||
with: | ||
args: build/${{ github.event.repository.name }}-${{ github.event.release.name }}.zip application/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
namespace PHPSTORM_META { | ||
// Allow PhpStorm IDE to resolve return types when calling book_database( Object_Type::class ) or book_database( `Object_Type` ). | ||
override( | ||
\Book_Database\book_database( 0 ), | ||
map( [ | ||
'' => '@', | ||
'' => '@Class', | ||
] ) | ||
); | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.