-
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.
- Loading branch information
Showing
1 changed file
with
63 additions
and
57 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 |
---|---|---|
@@ -1,57 +1,63 @@ | ||
name: Build and release | ||
on: | ||
push: | ||
branches: | ||
- master | ||
paths-ignore: | ||
- '.wordpress-org/**' | ||
- '.github/workflows/wp-deploy.yml' | ||
- '.github/workflows/wp-assets.yml' | ||
- '.github/scripts/deploy.sh' | ||
- 'README.md' | ||
- 'CHANGELOG.md' | ||
- '.codeclimate.yml' | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Node.js | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 16 | ||
cache: yarn | ||
- name: Cache Composer dependencies | ||
uses: actions/[email protected] | ||
with: | ||
path: /tmp/composer-cache | ||
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }} | ||
- name: Install composer dependencies | ||
uses: php-actions/composer@v6 | ||
with: | ||
php_version: 7.4 | ||
version: 2 | ||
dev: no | ||
quiet: yes | ||
args: --optimize-autoloader --classmap-authoritative --prefer-dist | ||
- name: Install Yarn dependencies | ||
run: yarn install | ||
- name: Lint | ||
run: yarn lint | ||
- name: Build | ||
run: "yarn build:production" | ||
- name: Release | ||
env: | ||
GIT_AUTHOR_NAME: "oblakbot" | ||
GIT_AUTHOR_EMAIL: "[email protected]" | ||
GIT_COMMITTER_NAME: "oblakbot" | ||
GIT_COMMITTER_EMAIL: '[email protected]' | ||
GITHUB_TOKEN: ${{ secrets.OBLAK_BOT_TOKEN }} | ||
run: yarn run semantic-release | ||
|
||
|
||
name: Build and release | ||
on: | ||
push: | ||
branches: | ||
- master | ||
paths-ignore: | ||
- '.wordpress-org/**' | ||
- '.github/workflows/wp-deploy.yml' | ||
- '.github/workflows/wp-assets.yml' | ||
- '.github/scripts/deploy.sh' | ||
- 'README.md' | ||
- 'CHANGELOG.md' | ||
- '.codeclimate.yml' | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
- name: Import GPG key | ||
uses: crazy-max/ghaction-import-gpg@v5 | ||
with: | ||
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | ||
passphrase: ${{ secrets.GPG_PASSPHRASE }} | ||
git_config_global: true | ||
git_user_signingkey: true | ||
git_commit_gpgsign: true | ||
- name: Setup Node.js | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 16 | ||
cache: yarn | ||
- name: Cache Composer dependencies | ||
uses: actions/[email protected] | ||
with: | ||
path: /tmp/composer-cache | ||
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }} | ||
- name: Install composer dependencies | ||
uses: php-actions/composer@v6 | ||
with: | ||
php_version: 7.4 | ||
version: 2 | ||
dev: no | ||
quiet: yes | ||
args: --optimize-autoloader --classmap-authoritative --prefer-dist | ||
- name: Install Yarn dependencies | ||
run: yarn install | ||
- name: Lint | ||
run: yarn lint | ||
- name: Build | ||
run: 'yarn build:production' | ||
- name: Release | ||
env: | ||
GIT_AUTHOR_NAME: 'oblakbot' | ||
GIT_AUTHOR_EMAIL: '[email protected]' | ||
GIT_COMMITTER_NAME: 'oblakbot' | ||
GIT_COMMITTER_EMAIL: '[email protected]' | ||
GITHUB_TOKEN: ${{ secrets.OBLAK_BOT_TOKEN }} | ||
run: yarn run semantic-release |