Skip to content

chore(build): Fixed release process #14

chore(build): Fixed release process

chore(build): Fixed release process #14

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/checkout@v2.3.4
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/setup-node@v2.4.0
with:
node-version: 16
cache: yarn
- name: Cache Composer dependencies
uses: actions/cache@v2.1.6
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: 'sibin.grasic+bot@oblak.studio'
GIT_COMMITTER_NAME: 'oblakbot'
GIT_COMMITTER_EMAIL: 'sibin.grasic+bot@oblak.studio'
GITHUB_TOKEN: ${{ secrets.OBLAK_BOT_TOKEN }}
run: yarn run semantic-release