Skip to content

Commit

Permalink
Release: 0.1.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
filiphsps committed Aug 26, 2023
1 parent 0455245 commit f15a782
Show file tree
Hide file tree
Showing 6 changed files with 81 additions and 4 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/upload-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: build and release

on:
release:
types: [published]

jobs:
tag:
name: 🚛 Build and release
runs-on: ubuntu-latest

steps:
- name: 🕶️ Checkout repository
uses: actions/checkout@v3

- name: 🤮 Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8
coverage: none
extensions: mbstring, intl
tools: composer:v2

- name: 📦 Download dependencies
run: |
composer install --no-dev --optimize-autoloader
- name: 🗃️ Create artifact
run: |
mkdir theme-build
composer archive -vvv --format=zip --file="theme-build/betheme-wordpress-headless-theme"
- name: 🚛 Upload artifact
uses: actions/upload-artifact@v3
with:
name: betheme-wordpress-headless-theme
path: theme-build/betheme-wordpress-headless-theme.zip

- name: 🚀 Upload release asset
uses: softprops/action-gh-release@v1
with:
files: theme-build/betheme-wordpress-headless-theme.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ yarn-error.log*

# deployment
.vercel
theme-build/

# wordpress
wp-cli.local.yml
Expand Down
25 changes: 23 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,32 @@
"squizlabs/php_codesniffer": "^3.7"
},
"require": {
"phpcompatibility/phpcompatibility-wp": "^2.1"
"phpcompatibility/phpcompatibility-wp": "^2.1",
"php": ">=8"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"platform": {
"php": "8"
},
"process-timeout": 0,
"optimize-autoloader": true
},
"archive": {
"name": "betheme-wordpress-headless-theme",
"exclude": [
"/.*",
"!.wordpress-org",
"!vendor",
"theme-build",
"node_modules",
"/composer.json",
"/composer.lock",
"/package.json",
"/package-lock.json",
"/phpcs.xml"
]
}
}
9 changes: 7 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ Designed to work perfectly with [WPGraphQL BeBuilder](https://github.com/Nordcom

Initially based on [@nordcom/wordpress-headless-theme](https://github.com/NordcomInc/wordpress-headless-theme).

== NOTE ==

This is a theme for a __headless__ WordPress setup, the point
of it is to disable the frontend except for post/page previews and
if you're using the embeding feature during migration.

== Changelog ==

= 0.1.0 =
Expand Down
Binary file added screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f15a782

Please sign in to comment.