-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
91 additions
and
4 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,32 @@ | ||
name: Tag Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
if: "! contains(github.event.head_commit.message, '[skip ci]')" | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18.x' | ||
|
||
- name: Install pnpm | ||
run: npm install -g pnpm | ||
|
||
- name: Install dependencies, build and tag. | ||
run: | | ||
pnpm install | ||
composer install --prefer-dist --no-progress --no-suggest --ignore-platform-reqs | ||
pnpm run deploy | ||
pnpm run release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.BOT_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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Deploy to WordPress.org | ||
|
||
on: | ||
workflow_dispatch: | ||
# push: | ||
# tags: | ||
# - "*" | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18.x' | ||
|
||
- name: Install pnpm | ||
run: npm install -g pnpm | ||
|
||
- name: Install dependencies, build and tag. | ||
run: | | ||
pnpm install | ||
composer install --prefer-dist --no-progress --no-suggest --ignore-platform-reqs | ||
pnpm run deploy | ||
- name: WordPress Theme Deploy | ||
uses: Codeinwp/[email protected] | ||
env: | ||
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} | ||
SVN_USERNAME: ${{ secrets.SVN_USER }} | ||
BUILD_DIR: 'deploy/jadro' | ||
|
||
|
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,12 +1,29 @@ | ||
{ | ||
"github": { | ||
"release": true, | ||
"github": { | ||
"release": true, | ||
"draft": false, | ||
"changelog": false, | ||
"releaseName": "${version}", | ||
"releaseName": "${version}", | ||
"assets": ["deploy/*.zip"] | ||
}, | ||
}, | ||
"git": { | ||
"requireCleanWorkingDir": false, | ||
"tagName": "v${version}", | ||
"commitMessage": "Release v${version}", | ||
"pushRepo": "origin", | ||
"push": true | ||
}, | ||
"npm": { | ||
"publish": false | ||
}, | ||
"hooks": { | ||
"after:release": "echo Successfully released ${name} v${version} to ${repo.repository}." | ||
}, | ||
"plugins": { | ||
"version": { | ||
"src": "package.json", | ||
"type": "json", | ||
"path": "version" | ||
} | ||
} | ||
} |