Skip to content

Commit

Permalink
bump version, add github release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmondok committed Mar 10, 2020
1 parent ef6f4df commit 0fbce1e
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 9 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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 }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "woda/wp-admin-options",
"name": "woda/admin-options",
"description": "",
"keywords": [
"wordpress",
"plugin",
"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",
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
7 changes: 4 additions & 3 deletions woda-admin-options.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
<?php
/**
* Plugin Name: Woda Admin Options
* Plugin URI: https://github.com/wwwoda/wp-plugin-woda-admin-options
* Plugin URI: https://github.com/wwwoda/woda-woda-admin-options
* Description: ...
* Version: 0.3.0
* Version: 0.3.1
* Author: Woda
* Author URI: https://www.woda.at
* License: GNU General Public License v2
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
* Domain Path: /languages
* Text Domain: woda-admin-options
* GitHub Plugin URI: https://github.com/wwwoda/wp-plugin-woda-admin-options
* GitHub Plugin URI: https://github.com/wwwoda/woda-woda-admin-options
* Release Asset: true
*
* @package Woda_Admin_Options
*/
Expand Down

0 comments on commit 0fbce1e

Please sign in to comment.