Skip to content

Merge branch 'release/1.11.0' #20

Merge branch 'release/1.11.0'

Merge branch 'release/1.11.0' #20

Workflow file for this run

name: Release
on:
push:
tags: [ "*" ]
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'npm'
- name: Install Node.js dependencies
run: npm install
- name: Build Javascript & CSS
env:
# Fix for ERR_OSSL_EVP_UNSUPPORTED error caused by Webpack
NODE_OPTIONS: --openssl-legacy-provider
run: |
npm run css-prod
npm run webpack-prod
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
working-directory: ./plugins/gh-datainmap
run: composer install --prefer-dist --no-progress
- name: Archive Release
run: |
mkdir -p dist/gh-datainmap
rsync -av ./plugins/gh-datainmap ./dist --exclude 'composer.*'
cp CHANGELOG.md ./dist/gh-datainmap
cd dist
zip -r ../gh-datainmap.zip ./gh-datainmap
- name: Release
uses: fnkr/github-action-ghr@v1
env:
GHR_PATH: gh-datainmap.zip
GHR_REPLACE: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}