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 8b3c71d commit df77c50
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 8 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 }}
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-scripts-styles-loader",
"name": "woda/scripts-styles-loader",
"description": "",
"keywords": [
"wordpress",
"plugin",
"assets"
],
"license": "GPLv2 or later",
"homepage": "https://github.com/wwwoda/wp-plugin-scripts-styles-loader",
"homepage": "https://github.com/wwwoda/woda-scripts-styles-loader",
"authors": [
{
"name": "Woda",
Expand All @@ -25,8 +25,8 @@
],
"type": "wordpress-plugin",
"support": {
"issues": "https://github.com/wwwoda/wp-plugin-scripts-styles-loader/issues",
"source": "https://github.com/wwwoda/wp-plugin-scripts-styles-loader"
"issues": "https://github.com/wwwoda/woda-scripts-styles-loader/issues",
"source": "https://github.com/wwwoda/woda-scripts-styles-loader"
},
"require": {
"ext-json": "*",
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-scripts-styles-loader.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
<?php
/**
* Plugin Name: Woda Scripts Styles Loader
* Plugin URI: https://github.com/wwwoda/wp-plugin-scripts-styles-loader
* Plugin URI: https://github.com/wwwoda/woda-scripts-styles-loader
* 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-scripts-styles-loader
* GitHub Plugin URI: https://github.com/wwwoda/wp-plugin-scripts-styles-loader
* GitHub Plugin URI: https://github.com/wwwoda/woda-scripts-styles-loader
* Release Asset: true
*
* @package Woda_Scripts_Styles_Loader
*/
Expand Down

0 comments on commit df77c50

Please sign in to comment.