Skip to content

Calibrate the i18-command version #14

Calibrate the i18-command version

Calibrate the i18-command version #14

Workflow file for this run

name: Build and Deploy into SVN
on:
push:
tags:
- '*'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout to repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'yarn'
- name: Install dependencies
run: yarn install
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
tools: wp-cli
- name: Install WP-CLI i18n command
run: wp package install wp-cli/i18n-command:v2.6.0
- name: Build the plugin
run: yarn build
- name: Deploy to SVN
id: deploy
uses: 10up/action-wordpress-plugin-deploy@stable
with:
generate-zip: true
dry-run: >-
${{
contains(github.ref, '-alpha') ||
contains(github.ref, '-beta') ||
contains(github.ref, '-rc')
}}
env:
SVN_USERNAME: ${{ secrets.SVN_USERNAME || 'xxxx' }}
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD || '****' }}
BUILD_DIR: build
- name: Create Github Release
uses: softprops/action-gh-release@v2
with:
files: ${{ steps.deploy.outputs.zip-path }}
name: 'Growfund - ${{ github.ref_name }}'
body: '**Full Changelog**: https://github.com/themeum/growfund/compare/${{ github.ref_name }}...${{ github.ref_name }}'
make_latest: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}