Build and release #43
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and release | |
on: | |
push: | |
tags: | |
- 'v*.*.*' | |
- 'v*.*.*-rc.*' | |
permissions: | |
contents: write | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3.3.0 | |
with: | |
node-version: 14 | |
cache: 'npm' | |
- name: Install Node dependencies | |
run: npm install | |
- name: Validate composer.json and composer.lock | |
run: composer validate --strict | |
- name: Install PHP dependencies | |
run: composer install --no-progress | |
- name: Build theme | |
run: npm run build | |
- name: Package theme | |
run: ./node_modules/.bin/wp-scripts plugin-zip | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: ucsc-2022.zip | |
generate_release_notes: true |