Skip to content

Activate Posts-to-Posts after phpdoc-parser #36

Activate Posts-to-Posts after phpdoc-parser

Activate Posts-to-Posts after phpdoc-parser #36

name: Generate Playground Assets
on:
push:
workflow_dispatch:
jobs:
generate-playground-assets:
runs-on: ubuntu-latest
steps:
- name: Checkout repo.
uses: actions/checkout@v4
- name: Clone forked & modified wporg-developer-2023 theme sourcecode.
uses: actions/checkout@v4
with:
repository: 'carstingaxion/gatherpress-wporg-developer-theme'
path: 'temp/wporg-developer-2023'
- name: Install Composer dependencies
run: composer install --ignore-platform-req=php+ --working-dir "${{ github.workspace }}/temp/wporg-developer-2023"
- name: Copy themes.
run: |
mkdir wp-content
mv -fv temp/wporg-developer-2023/source/wp-content .
rm -rf temp
- name: Clone GatherPress sourcecode.
uses: actions/checkout@v4
with:
repository: 'GatherPress/gatherpress'
path: 'wp-content/plugins/gatherpress'
- name: Get Composer Cache Directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Configure Composer cache
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Copy built assets into ZIP for extraction inside Playground.
run: |
zip -FSr zips/playground-assets.zip wp-content -x "*.git*" "*.mp4*" "*/jetpack/"
rm -rf wp-content
- uses: EndBug/add-and-commit@v9
with:
message: 'Persist prepared assets'