Skip to content

Commit

Permalink
Update asset updater workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dkotter committed Dec 19, 2023
1 parent 5dd327a commit 2648562
Showing 1 changed file with 22 additions and 14 deletions.
36 changes: 22 additions & 14 deletions .github/workflows/dotorg-asset-readme-update.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,32 @@
name: Plugin asset/readme update

on:
push:
branches:
- trunk

jobs:
trunk:
name: Push to trunk
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install node v10
uses: actions/setup-node@v1
with:
node-version: 10
- name: Build
run: |
npm install
npm run build
- name: WordPress.org plugin asset/readme update
uses: 10up/action-wordpress-plugin-asset-update@stable
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
- name: Checkout code
uses: actions/checkout@v4

- name: Setup node version
uses: actions/setup-node@v4
with:
node-version: 16
cache: npm

- name: Build
run: |
npm install
npm run build
composer install --no-dev --optimize-autoloader
- name: WordPress.org plugin asset/readme update
uses: 10up/action-wordpress-plugin-asset-update@stable
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}

0 comments on commit 2648562

Please sign in to comment.