Repository navigation
Minor Changes To Make Multisite Compatible #2758
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
b9f5f93
Multisite support added for wp_users & wp_usermeta table
shewa12 4c82df5
Merge branch '4.0.0-dev' of https://github.com/themeum/tutor into mul…
shewa12 6367bc3
Merge branch '4.0.0-dev' of https://github.com/themeum/tutor into mul…
shewa12 1c931f1
Refactored the base prefix settings mechanism
shewa12 462262a
Removed unsed global wpdb
shewa12 3619f2c
Refactored the is_base_table method
shewa12 f94656c
Refactored the is_base_table method
shewa12 9317660
Table name with alias case handled
shewa12 702c06a
Refactor is_plugin_active method to make it compitable for single & m…
shewa12 6254152
Removed the redundant typecast
shewa12 cea93eb
Doc comment updated
shewa12 1043768
Plugin active & null check added
shewa12 518a5c9
Explicit prefix removed
shewa12 a7426a9
Merge branch '4.0.0-dev' of https://github.com/themeum/tutor into mul…
shewa12 a875dbf
Merge branch '4.0.0-dev' of https://github.com/themeum/tutor into mul…
shewa12 e7c1063
Merge branch '4.0.0-dev' of https://github.com/themeum/tutor into mul…
shewa12 d90b84e
Merge branch '4.0.0-dev' of https://github.com/themeum/tutor into mul…
shewa12 8c0f43c
Check login cookie before usage
shewa12 4ba746d
Revert "Check login cookie before usage"
shewa12 7704af2
Deployment workflow added
shewa12 1a448cb
PHPStan workflow removed
shewa12 057c590
Fix run command issue
shewa12 8db4963
Node version updated
shewa12 109190f
Node version updated
shewa12 4dcb965
Removed staging build & deploy
shewa12 53972b8
Merge branch '4.0.0-dev' of https://github.com/themeum/tutor into mul…
shewa12 f17e578
Workflow title updated
shewa12 c3ef97c
Merge branch '4.0.0-dev' of https://github.com/themeum/tutor into mul…
shewa12 830b934
Ignore sample course import when using multisite
shewa12 dbb9169
Merge branch '4.0.0-dev' of https://github.com/themeum/tutor into mul…
shewa12 ba9c700
Space added above the onboard button
shewa12 aea43c6
Merge branch '4.0.0-dev' of https://github.com/themeum/tutor into mul…
shewa12 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,67 @@ | ||
| name: Demo Build and Deploy | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - multisite | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Extract version number | ||
| id: get_version | ||
| run: | | ||
| version=$(grep -Po 'Version:\s*\K[\d.]+' tutor.php) | ||
| echo "VERSION_NUMBER=$version" >> $GITHUB_ENV | ||
| echo "ZIP_PATH=tutor-${version}.zip" >> $GITHUB_ENV | ||
|
|
||
| - name: Set up pnpm | ||
| uses: pnpm/action-setup@v4 | ||
| with: | ||
| version: 9 | ||
|
|
||
| - name: Set up Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 20 | ||
| cache: pnpm | ||
|
|
||
| - name: Install Composer | ||
| run: sudo apt-get update && sudo apt-get install -y composer | ||
|
|
||
| - name: Install dependencies | ||
| run: pnpm install --frozen-lockfile | ||
|
|
||
| - name: Build project | ||
| run: pnpm run build-dev | ||
|
|
||
| - name: Upload artifact | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: build-artifact | ||
| path: ${{ env.ZIP_PATH }} | ||
|
|
||
| - name: Setup SSH | ||
| uses: webfactory/ssh-agent@v0.5.3 | ||
| with: | ||
| ssh-private-key: ${{ secrets.DEMO_SSH_PRIVATE_KEY }} | ||
|
|
||
| - name: Add remote server to known hosts | ||
| run: | | ||
| mkdir -p ~/.ssh | ||
| ssh-keyscan -H 172.105.64.114 >> ~/.ssh/known_hosts | ||
|
|
||
| - name: Transfer file to remote | ||
| run: scp ${{ env.ZIP_PATH }} root@172.105.64.114:/var/www/tutor-demo/wp-content/plugins | ||
|
|
||
| - name: UNZIP file | ||
| run: | | ||
| ssh root@172.105.64.114 << 'EOF' | ||
| rm -rf /var/www/tutor-demo/wp-content/plugins/tutor | ||
| unzip -o /var/www/tutor-demo/wp-content/plugins/${{ env.ZIP_PATH }} -d /var/www/tutor-demo/wp-content/plugins | ||
| EOF |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update comment