diff --git a/.gitattributes b/.gitattributes
index b81cb55..69f0b2a 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1 +1,14 @@
-.phpcs.xml export-ignore
\ No newline at end of file
+/.github export-ignore
+/docs export-ignore
+/tests export-ignore
+/.codeclimate.yml export-ignore
+/.editorconfig export-ignore
+/.gitattributes export-ignore
+/.gitignore export-ignore
+/.releaserc export-ignore
+/CODE_OF_CONDUCT.md export-ignore
+/CONTRIBUTING.md export-ignore
+/README.md export-ignore
+/SECURITY.md export-ignore
+/.phpcs.xml export-ignore
+/phpunit.xml export-ignore
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 952c842..de6682b 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -1,9 +1,12 @@
-name: Release
+name: CI
on:
- workflow_dispatch:
push:
branches:
- master
+ - develop
+ - alpha
+ - beta
+
jobs:
release:
name: Release
@@ -13,13 +16,25 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- token: ${{ secrets.OBLAK_BOT_TOKEN }}
- - name: Publish a composer package
- uses: better-php-actions/publish-composer-package@v1
+ token: ${{ secrets.OBLAKBOT_PAT }}
+ - name: Import GPG key
+ uses: crazy-max/ghaction-import-gpg@v6
+ id: gpg
with:
- package_slug: 'oblak-wordpress-coding-standard'
- package_name: 'Oblak WP Coding Standard'
- with_gpg: true
- gpg_key: ${{ secrets.GPG_PRIVATE_KEY }}
- gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }}
- release_token: ${{ secrets.OBLAK_BOT_TOKEN }}
+ gpg_private_key: ${{ secrets.OBLAKBOT_GPG_KEY }}
+ passphrase: ${{ secrets.OBLAKBOT_GPG_PASS }}
+ 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.OBLAKBOT_PAT }}
diff --git a/.releaserc b/.releaserc
new file mode 100644
index 0000000..9a2e276
--- /dev/null
+++ b/.releaserc
@@ -0,0 +1,39 @@
+{
+ "branches": [
+ "master",
+ {
+ "name": "develop",
+ "prerelease": true
+ },
+ {
+ "name": "alpha",
+ "prerelease": true
+ },
+ {
+ "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 ./composer.json"
+ }
+ ],
+ [
+ "@semantic-release/github",
+ {
+ "assets": [
+ {
+ "path": "/tmp/release.zip",
+ "name": "oblak-wp-coding-standards-v${nextRelease.version}.zip",
+ "label": "Oblak WordPress Coding Standards v${nextRelease.version}"
+ }
+ ]
+ }
+ ]
+ ]
+}
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..e69de29
diff --git a/src/Oblak-Core/ruleset.xml b/src/Oblak-Core/ruleset.xml
index 2da1fc1..079ab79 100644
--- a/src/Oblak-Core/ruleset.xml
+++ b/src/Oblak-Core/ruleset.xml
@@ -1,112 +1,100 @@
-
-
-
-
-
+
+
+
+
+
-
-
- dist/*
- docker/*
- node_modules/*
- tests/*
- vendor/*
+ dist/*
+ docker/*
+ node_modules/*
+ tests/*
+ vendor/*
-
-
-
-
+
+
-
-
-
-
+
+
+
-
-
-
-
-
+
+
+
+
-
- 5
-
-
+
+ 5
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
- 0
-
-
- 0
-
-
-
-
-
-
-
-
-
-
-
-
-
+ -->
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
-
-
- 10
-
+
+
+ 10
+
diff --git a/src/Oblak-Docs/ruleset.xml b/src/Oblak-Docs/ruleset.xml
index 52c8354..fd30f48 100644
--- a/src/Oblak-Docs/ruleset.xml
+++ b/src/Oblak-Docs/ruleset.xml
@@ -1,13 +1,13 @@
-
-
- warning
-
+
+ warning
+
-
\ No newline at end of file
+
diff --git a/src/Oblak-Slevomat/ruleset.xml b/src/Oblak-Slevomat/ruleset.xml
index 1348fc9..4e02ffb 100644
--- a/src/Oblak-Slevomat/ruleset.xml
+++ b/src/Oblak-Slevomat/ruleset.xml
@@ -1,7 +1,7 @@
-
+
@@ -53,9 +53,7 @@
-
-
diff --git a/src/Oblak-WooCommerce/ruleset.xml b/src/Oblak-WooCommerce/ruleset.xml
index 7b7e18e..59835e1 100644
--- a/src/Oblak-WooCommerce/ruleset.xml
+++ b/src/Oblak-WooCommerce/ruleset.xml
@@ -1,18 +1,18 @@
-
-
+
-
-
+
@@ -24,23 +24,23 @@
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
\ No newline at end of file
+