-
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 #13 from thefrosty/feature/2.0.0
Version 2.0 -- Namespace change, code updates for PHP >= 7.3
- Loading branch information
Showing
27 changed files
with
161 additions
and
172 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,48 @@ | ||
#################################################################################### | ||
# GitHub Action: | ||
# Whenever creating a new release of the source code. | ||
#################################################################################### | ||
# Steps to execute: | ||
# - Checkout the source code | ||
# - Run "composer install" for production (required dependencies are already under vendor/) | ||
# - Create a .zip file, excluding: | ||
# - All hidden files (.git, .gitignore, etc) | ||
# - Rector file | ||
# - All development files, ending in .dist | ||
# - All composer files <= after installing dependencies, no need for them anymore | ||
# - Markdown files concerning development | ||
# - Folder build/ <= created only to store the .zip file | ||
# - Folder dev-helpers/ <= not needed for the plugin | ||
# - Upload the .zip file as an artifact to the action (this step is possibly optional) | ||
# - Upload the .zip file as a release, for download | ||
#################################################################################### | ||
name: Generate Installable Plugin and Upload as Release Asset | ||
on: | ||
release: | ||
types: [published] | ||
jobs: | ||
build: | ||
name: Build, Downgrade and Upload Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Build project for production | ||
run: | | ||
composer install --no-dev --optimize-autoloader | ||
mkdir build | ||
- name: Create artifact | ||
uses: montudor/action-zip@v0.1.0 | ||
with: | ||
args: zip -X -r build/wp-login-locker.zip . -x *.git* node_modules/\* .* "*/\.*" "*/\.xml" coverage** composer.* build** | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: wp-login-locker | ||
path: build/wp-login-locker.zip | ||
- name: Upload to release | ||
uses: JasonEtco/upload-to-release@master | ||
with: | ||
args: build/wp-login-locker.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
language: php | ||
|
||
php: | ||
- '7.2' | ||
- '7.3' | ||
- '7.4' | ||
|
||
install: composer install | ||
|
||
|
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
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
Oops, something went wrong.