-
Notifications
You must be signed in to change notification settings - Fork 3
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 #59 from sovware/staging
Staging
- Loading branch information
Showing
7 changed files
with
69 additions
and
8 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,60 @@ | ||
name: Build Production & Release | ||
|
||
on: | ||
release: | ||
types: | ||
- created | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '7.4' | ||
|
||
- name: Setup composer | ||
run: composer setup | ||
|
||
- name: Setup Node.js 18.15.0 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "18.15.0" | ||
|
||
- name: Install yarn globally | ||
run: npm install --global yarn | ||
|
||
- name: Install yarn dependencies | ||
run: yarn install | ||
|
||
- name: Compile Scripts | ||
run: yarn minify | ||
|
||
- name: Fix Text Domain | ||
run: yarn fixtextdomain | ||
|
||
- name: Generate Text Domain POT file | ||
run: composer make-production-pot | ||
|
||
- name: Remove Composer Dev Dependencies | ||
run: composer build | ||
|
||
- name: Build plugin | ||
run: yarn git-compress | ||
|
||
- name: Create zip file | ||
run: | | ||
tag_name=$(git describe --tags --abbrev=0) | ||
zip -r "templatiq.${tag_name}.zip" templatiq | ||
- name: Upload zip file as a release asset | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: templatiq*.zip | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.PERSONAL_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 |
---|---|---|
|
@@ -13,12 +13,12 @@ jobs: | |
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up PHP | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '7.4' | ||
|
||
- name: Setup composer | ||
- name: Setup Composer | ||
run: composer setup | ||
|
||
- name: Setup Node.js 18.15.0 | ||
|
@@ -38,20 +38,18 @@ jobs: | |
- name: Fix Text Domain | ||
run: yarn fixtextdomain | ||
|
||
- name: Generate Text Domain POT file | ||
run: composer make-unminified-pot | ||
|
||
- name: Remove Composer Dev Dependencies | ||
run: composer build | ||
|
||
- name: 📂 Sync files | ||
- name: 📂 Sync Files - FTP Deploy | ||
uses: SamKirkland/[email protected] | ||
with: | ||
server: ${{ secrets.ftp_staging_server }} | ||
username: ${{ secrets.ftp_staging_username }} | ||
password: ${{ secrets.ftp_staging_password }} | ||
port: 21 | ||
exclude: | | ||
src/** | ||
node_modules/** | ||
resources/js/** | ||
resources/svg/** | ||
|
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.