Skip to content

v1.1.8 (#59)

v1.1.8 (#59) #16

Workflow file for this run

name: Publish release
on:
push:
tags:
- '*'
jobs:
release:
name: Publish release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: '7.3'
coverage: xdebug
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install Composer dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader --no-suggest --no-dev
- name: Cleanup unnecessary files
run: rm -rf .git .github .editorconfig .prettierrc .gitattributes .gitignore assets composer.json composer.lock package.json yarn.lock webpack.mix.js tailwind.config.js
- name: Get the version
id: get_version
run: echo ::set-output name=version::${GITHUB_REF/refs\/tags\//}
shell: bash
- name: Create subfolder
run: mkdir acf-editor-palette && mv ./* acf-editor-palette/ 2>/dev/null
continue-on-error: true
- name: Create distributable zip file
uses: montudor/action-zip@v0.1.0
with:
args: zip -qq -r9 acf-editor-palette.zip acf-editor-palette
- name: Upload zip as release asset
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: acf-editor-palette.zip
asset_name: acf-editor-palette-${{ steps.get_version.outputs.version }}.zip
tag: ${{ github.ref }}
overwrite: true