diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..458a0dd --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,39 @@ +name: Release + +on: + push: + tags: + - '*' + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Get the repository name + id: get_repo_name + run: echo ::set-output name=REPOSITORY_NAME::$(echo "$GITHUB_REPOSITORY" | awk -F / '{print $2}') + - name: Get the version + id: get_version + run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/} + - name: Create Zip File + uses: thedoctor0/zip-release@master + if: startsWith(github.ref, 'refs/tags/') + with: + filename: '${{ steps.get_repo_name.outputs.REPOSITORY_NAME }}.zip' + exclusions: '*.git* + /*node_modules/* + *.lock + .editorconfig + .distignore + src + assets/src' + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: ${{ steps.get_repo_name.outputs.REPOSITORY_NAME }}.zip + name: Version ${{ steps.get_version.outputs.VERSION }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index 6410664..f9b163f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ By default, all administrators can access the options page. -By using following filter you can limit access email addresses from certain domains. +Limit users' access to the options page by defining allowed email domains. ``` add_filter('woda_super_admin_allowed_email_domains', static function($addresses) { $addresses[] = 'woda.at'; diff --git a/composer.json b/composer.json index 04f44d3..ac9c690 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "woda/wp-admin-options", + "name": "woda/admin-options", "description": "", "keywords": [ "wordpress", @@ -7,7 +7,7 @@ "assets" ], "license": "GPLv2 or later", - "homepage": "https://github.com/davidmondok/wp-plugin-woda-admin-options", + "homepage": "https://github.com/davidmondok/woda-admin-options", "authors": [ { "name": "Woda", @@ -25,8 +25,8 @@ ], "type": "wordpress-plugin", "support": { - "issues": "https://github.com/wwwoda/wp-plugin-admin-options/issues", - "source": "https://github.com/wwwoda/wp-plugin-admin-options" + "issues": "https://github.com/wwwoda/woda-admin-options/issues", + "source": "https://github.com/wwwoda/woda-admin-options" }, "require": { "htmlburger/carbon-fields": "^3.1" diff --git a/readme.txt b/readme.txt index 3af7250..545deb8 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: @davidmondok Tags: fonts, performance Requires at least: 4.5 Tested up to: 5.3 -Stable tag: 0.3.0 +Stable tag: 0.3.1 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html diff --git a/woda-admin-options.php b/woda-admin-options.php index c78da52..39774fe 100644 --- a/woda-admin-options.php +++ b/woda-admin-options.php @@ -1,16 +1,17 @@