diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..4e8cc2d --- /dev/null +++ b/.gitattributes @@ -0,0 +1,4 @@ +/.gitattributes export-ignore +/.gitignore export-ignore +/.gitea export-ignore +/test export-ignore diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index f1bf460..50f1c2c 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -21,16 +21,12 @@ jobs: run: | VERSION="${RELEASE_TAG#v}" grep -q "Version: ${VERSION}$" dabestaniha-authenticate-bridge.php - mkdir -p build/mahak-authenticate-bridge dist - rsync -a \ - --exclude='.git/' \ - --exclude='.gitea/' \ - --exclude='build/' \ - --exclude='dist/' \ - --exclude='test/' \ - ./ build/mahak-authenticate-bridge/ - cd build - zip -qr ../dist/mahak-authenticate-bridge.zip mahak-authenticate-bridge + mkdir -p dist + git archive \ + --format=zip \ + --prefix=mahak-authenticate-bridge/ \ + --output=dist/mahak-authenticate-bridge.zip \ + HEAD - name: Publish Gitea release env: diff --git a/dabestaniha-authenticate-bridge.php b/dabestaniha-authenticate-bridge.php index 48ba9a3..6135bca 100644 --- a/dabestaniha-authenticate-bridge.php +++ b/dabestaniha-authenticate-bridge.php @@ -4,7 +4,7 @@ * Plugin Name: Mahak Authenticate Bridge * Plugin URI: https://mahgit.ir/dabestaniha/mahak-authenticate-bridge * Description: Authenticate WordPress user via json web token from Mahakiha Application. - * Version: 2.2.2 + * Version: 2.2.3 * Requires PHP: 7.4 * Update URI: https://mahgit.ir/dabestaniha/mahak-authenticate-bridge * Author: Dabestaniha @@ -18,7 +18,7 @@ use Dabestaniha\AuthenticateBridge\App\Http\Controllers\SettingsPageMenuControll use Dabestaniha\AuthenticateBridge\App\Http\Controllers\SettingsPageFormController; use Dabestaniha\AuthenticateBridge\App\Support\PluginUpdater; -define('MAHAK_AUTHENTICATE_BRIDGE_VERSION', '2.2.2'); +define('MAHAK_AUTHENTICATE_BRIDGE_VERSION', '2.2.3'); define('MAHAK_AUTHENTICATE_BRIDGE_FILE', __FILE__); require_once __DIR__.'/src/Autoloader.php';