-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (37 loc) · 1.1 KB
/
package.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# CWordPress theme packager workflow
name: Package WordPress Theme
on:
push:
branches:
- master
jobs:
package:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: composer install --no-dev
- name: Build theme
run: npm ci && npm run build
- name: Run package.py
run: python package.py
- name: Create release
id: create_release
uses: softprops/action-gh-release@v2
with:
name: Release ${{ github.sha }}
files: theme.zip
tag_name: release-${{ github.sha }}
draft: false
prerelease: false
- name: Get the URL of the created release
run: echo "The release is at ${{ steps.create_release.outputs.html_url }}"