Skip to content

Commit 671de3c

Browse files
committed
feat: Rewrite
BREAKING CHANGE: Let's bump it
1 parent 03331f0 commit 671de3c

21 files changed

+1541
-1483
lines changed

.gitattributes

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,15 @@
11
/.github export-ignore
2-
/.yarn export-ignore
3-
/docs export-ignore
4-
/tests export-ignore
52
/.codeclimate.yml export-ignore
63
/.editorconfig export-ignore
74
/.gitattributes export-ignore
85
/.gitignore export-ignore
96
/.releaserc export-ignore
10-
/.yarnrc.yml export-ignore
11-
/CHANGELOG.md export-ignore
127
/CODE_OF_CONDUCT.md export-ignore
8+
/composer.lock export-ignore
139
/CONTRIBUTING.md export-ignore
14-
/LICENSE export-ignore
15-
/README.md export-ignore
10+
/docs export-ignore
11+
/examples export-ignore
1612
/SECURITY.md export-ignore
17-
/package.json export-ignore
18-
/yarn.lock export-ignore
1913
/phpcs.xml export-ignore
14+
/phpstan.neon export-ignore
2015
/phpunit.xml export-ignore

.github/renovate.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +0,0 @@
1-
{
2-
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": [
4-
"config:base"
5-
]
6-
}

.github/scripts/release.sh

Lines changed: 0 additions & 9 deletions
This file was deleted.

.github/workflows/pull_request.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
name: Release
1+
name: CI
22
on:
3-
workflow_dispatch:
43
push:
54
branches:
65
- master
6+
- develop
7+
- alpha
8+
- beta
9+
710
jobs:
811
release:
912
name: Release
@@ -13,13 +16,25 @@ jobs:
1316
uses: actions/checkout@v4
1417
with:
1518
fetch-depth: 0
16-
token: ${{ secrets.OBLAK_BOT_TOKEN }}
17-
- name: Publish a composer package
18-
uses: better-php-actions/publish-composer-package@v1
19+
token: ${{ secrets.OBLAKBOT_PAT }}
20+
- name: Import GPG key
21+
uses: crazy-max/ghaction-import-gpg@v6
22+
id: gpg
1923
with:
20-
package_slug: "wp-package-updater"
21-
package_name: "WP Package updater"
22-
with_gpg: true
23-
gpg_key: ${{ secrets.GPG_PRIVATE_KEY }}
24-
gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }}
25-
release_token: ${{ secrets.OBLAK_BOT_TOKEN }}
24+
gpg_private_key: ${{ secrets.OBLAKBOT_GPG_KEY }}
25+
passphrase: ${{ secrets.OBLAKBOT_GPG_PASS }}
26+
git_config_global: true
27+
git_user_signingkey: true
28+
git_commit_gpgsign: true
29+
- name: Semantic Release
30+
uses: cycjimmy/semantic-release-action@v4
31+
with:
32+
extra_plugins: |
33+
@semantic-release/github
34+
@semantic-release/exec
35+
env:
36+
GIT_AUTHOR_NAME: ${{ steps.gpg.outputs.name}}
37+
GIT_AUTHOR_EMAIL: ${{ steps.gpg.outputs.email}}
38+
GIT_COMMITTER_NAME: ${{ steps.gpg.outputs.name}}
39+
GIT_COMMITTER_EMAIL: ${{ steps.gpg.outputs.email}}
40+
GITHUB_TOKEN: ${{ secrets.OBLAKBOT_PAT }}

composer.json

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "oblak/wp-package-updater",
2+
"name": "x-wp/updater",
33
"description": "Simplifies the process of updating WordPress packages from custom repositories.",
44
"license": "GPL-2.0-only",
55
"type": "library",
@@ -24,28 +24,37 @@
2424
"issues": "https://github.com/oblakstudio/wp-package-updater/issues"
2525
},
2626
"require": {
27-
"php": ">= 8.0"
27+
"php": ">=8.0",
28+
"x-wp/helper-functions": "^1.19",
29+
"x-wp/helper-classes": "^1.19"
2830
},
2931
"require-dev": {
30-
"oblak/wordpress-coding-standard": "^1",
31-
"ergebnis/composer-normalize": "^2.31"
32+
"oblak/wordpress-coding-standard": "^1.1.1",
33+
"php-stubs/wordpress-stubs": "^6.5",
34+
"phpstan/extension-installer": "^1.3",
35+
"phpstan/phpstan": "^1.10",
36+
"phpstan/phpstan-deprecation-rules": "^1.1",
37+
"swissspidy/phpstan-no-private": "^0.2.0",
38+
"symfony/var-dumper": "^5.4",
39+
"szepeviktor/phpstan-wordpress": "^1.3"
3240
},
3341
"suggest": {
3442
"automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package."
3543
},
3644
"autoload": {
3745
"psr-4": {
38-
"Oblak\\WP\\": "src"
46+
"XWP\\Updater\\": "src/"
3947
},
4048
"files": [
41-
"src/Utils/oblak-wppu-init.php",
42-
"src/Utils/oblak-wppu-utils.php"
49+
"src/Functions/xwp-updater-bootstrap.php",
50+
"src/Functions/xwp-updater-util-fns.php"
4351
]
4452
},
4553
"config": {
4654
"allow-plugins": {
4755
"dealerdirect/phpcodesniffer-composer-installer": true,
48-
"ergebnis/composer-normalize": true
56+
"ergebnis/composer-normalize": true,
57+
"phpstan/extension-installer": true
4958
}
5059
}
5160
}

0 commit comments

Comments
 (0)