Skip to content

Merge branch 'feat/rework' #18

Merge branch 'feat/rework'

Merge branch 'feat/rework' #18

Workflow file for this run

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@v6
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/setup-node@v4
with:
node-version: 18
cache: yarn
- name: Cache Composer dependencies
uses: actions/cache@v3
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
- name: Install composer dependencies
uses: php-actions/composer@v6
with:
php_version: '8.0'
quiet: yes
dev: no
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