Skip to content

Commit

Permalink
feat: Tuneup
Browse files Browse the repository at this point in the history
  • Loading branch information
seebeen committed Aug 2, 2024
1 parent 76199f4 commit f7e3c2d
Show file tree
Hide file tree
Showing 10 changed files with 1,050 additions and 764 deletions.
13 changes: 5 additions & 8 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
.github export-ignore
.yarn export-ignore
.github export-ignore
.editorconfig export-ignore
.gitignore export-ignore
.phpcs.xml export-ignore
.releaserc export-ignore
.yarnrc.yml export-ignore
.gitignore export-ignore
.phpcs.xml export-ignore
.releaserc export-ignore
composer.lock export-ignore
package.json export-ignore
yarn.lock export-ignore
phpstan.neon export-ignore
33 changes: 23 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Release
name: CI
on:
workflow_dispatch:
push:
branches:
- master
- beta

jobs:
release:
name: Release
Expand All @@ -14,12 +15,24 @@ jobs:
with:
fetch-depth: 0
token: ${{ secrets.OBLAK_BOT_TOKEN }}
- name: Publish a composer package
uses: better-php-actions/publish-composer-package@v1
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
id: gpg
with:
package_slug: "extremis-core"
package_name: "Extremis Core"
with_gpg: true
gpg_key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }}
release_token: ${{ secrets.OBLAK_BOT_TOKEN }}
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
git_config_global: true
git_user_signingkey: true
git_commit_gpgsign: true
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
with:
extra_plugins: |
@semantic-release/github
@semantic-release/exec
env:
GIT_AUTHOR_NAME: ${{ steps.gpg.outputs.name}}
GIT_AUTHOR_EMAIL: ${{ steps.gpg.outputs.email}}
GIT_COMMITTER_NAME: ${{ steps.gpg.outputs.name}}
GIT_COMMITTER_EMAIL: ${{ steps.gpg.outputs.email}}
GITHUB_TOKEN: ${{ secrets.OBLAK_BOT_TOKEN }}
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
.vscode
node_modules
vendor
31 changes: 31 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"branches": [
"master",
{
"name": "beta",
"prerelease": true
}
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/exec",
{
"prepareCmd": "zip -r '/tmp/release.zip' ./src README.md"
}
],
[
"@semantic-release/github",
{
"assets": [
{
"path": "/tmp/release.zip",
"name": "extremis-core-${nextRelease.version}.zip",
"label": "Extremis Core v${nextRelease.version}"
}
]
}
]
]
}
85 changes: 0 additions & 85 deletions CHANGELOG.md

This file was deleted.

39 changes: 26 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,44 @@
"name": "oblak/extremis-core",
"description": "Core files for Extremis",
"license": "GPL-2.0-or-later",
"autoload": {
"psr-4": {
"Extremis\\": "src"
},
"files": [
"src/Utils/extremis-helpers.php"
]
},
"require": {
"php": ">=8.0",
"php": "~8.0.0 || ~8.1.0",
"automattic/jetpack-constants": "^2.0",
"oblak/wp-asset-loader": "^3.0",
"oblak/wp-hook-di": "^1.0"
"oblak/wp-hook-di": "^1 || ^2",
"x-wp/helper-traits": "^1"
},
"require-dev": {
"oblak/wordpress-coding-standard": "^1.0.1",
"ergebnis/composer-normalize": "^2.31"
"oblak/wordpress-coding-standard": "^1",
"php-stubs/wordpress-stubs": "^6.5",
"phpstan/extension-installer": "^1.3",
"phpstan/phpstan": "^1.10",
"phpstan/phpstan-deprecation-rules": "^1.1",
"swissspidy/phpstan-no-private": "^0.2.0",
"symfony/var-dumper": "^6.4",
"szepeviktor/phpstan-wordpress": "^1.3"
},
"suggest": {
"automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use extremis dependencies.",
"oblak/composer-wp-di-finder-plugin": "Automatically find Hookable classes"
},
"autoload": {
"psr-4": {
"Oblak\\WP\\": "src/"
},
"classmap": [
"src/Compat/"
],
"files": [
"src/Utils/extremis-helpers.php"
]
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"ergebnis/composer-normalize": true,
"oblak/composer-wp-di-finder-plugin": true,
"ergebnis/composer-normalize": true
"phpstan/extension-installer": true
}
}
}
Loading

0 comments on commit f7e3c2d

Please sign in to comment.