-
Notifications
You must be signed in to change notification settings - Fork 25
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 #136 from fumikito/bugfix/build-error
#134 Fix build script and Add rsync to test server
- Loading branch information
Showing
4 changed files
with
8,568 additions
and
2 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 |
---|---|---|
|
@@ -112,6 +112,9 @@ jobs: | |
- name: Check JS & CSS syntax | ||
run: npm run lint | ||
|
||
- name: Ensure build works | ||
run: npm run package | ||
|
||
status-check: | ||
name: Status Check | ||
needs: [ test, assets, lint, analyze ] | ||
|
@@ -121,6 +124,42 @@ jobs: | |
run: echo "All Green!" | ||
|
||
|
||
deploy: | ||
name: Deploy Gianism.info | ||
needs: [ status-check ] | ||
if: contains(github.ref, 'master') && github.event_name == 'push' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP with composer v2 | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 7.2 | ||
tools: composer | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Install Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '14' | ||
|
||
- name: Build Plugin | ||
run: bash bin/build.sh refs/tags/${{ github.sha }} | ||
|
||
- name: Deploy with Rsync | ||
uses: Pendect/[email protected] | ||
env: | ||
DEPLOY_KEY: ${{secrets.GIANISM_XSERVER}} | ||
with: | ||
flags: '-rptv --checksum --delete' | ||
options: '--exclude-from=.distignore' | ||
ssh_options: '-p 10022' | ||
src: "./" | ||
dest: "[email protected]:/home/gianism002/gianism.info/public_html/wp-content/plugins/gianism/" | ||
|
||
release: | ||
name: Deploy WordPress.org | ||
needs: [ status-check ] | ||
|
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,5 +7,4 @@ assets/ | |
doc/ | ||
readme.txt | ||
language/wp-gianism.mo | ||
package-lock.json | ||
composer.lock |
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.