Skip to content

Commit df77c50

Browse files
committed
bump version, add github release workflow
1 parent 8b3c71d commit df77c50

File tree

4 files changed

+48
-8
lines changed

4 files changed

+48
-8
lines changed

.github/workflows/release.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
- name: Get the repository name
15+
id: get_repo_name
16+
run: echo ::set-output name=REPOSITORY_NAME::$(echo "$GITHUB_REPOSITORY" | awk -F / '{print $2}')
17+
- name: Get the version
18+
id: get_version
19+
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
20+
- name: Create Zip File
21+
uses: thedoctor0/zip-release@master
22+
if: startsWith(github.ref, 'refs/tags/')
23+
with:
24+
filename: '${{ steps.get_repo_name.outputs.REPOSITORY_NAME }}.zip'
25+
exclusions: '*.git*
26+
/*node_modules/*
27+
*.lock
28+
.editorconfig
29+
.distignore
30+
src
31+
assets/src'
32+
- name: Release
33+
uses: softprops/action-gh-release@v1
34+
if: startsWith(github.ref, 'refs/tags/')
35+
with:
36+
files: ${{ steps.get_repo_name.outputs.REPOSITORY_NAME }}.zip
37+
name: Version ${{ steps.get_version.outputs.VERSION }}
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"name": "woda/wp-scripts-styles-loader",
2+
"name": "woda/scripts-styles-loader",
33
"description": "",
44
"keywords": [
55
"wordpress",
66
"plugin",
77
"assets"
88
],
99
"license": "GPLv2 or later",
10-
"homepage": "https://github.com/wwwoda/wp-plugin-scripts-styles-loader",
10+
"homepage": "https://github.com/wwwoda/woda-scripts-styles-loader",
1111
"authors": [
1212
{
1313
"name": "Woda",
@@ -25,8 +25,8 @@
2525
],
2626
"type": "wordpress-plugin",
2727
"support": {
28-
"issues": "https://github.com/wwwoda/wp-plugin-scripts-styles-loader/issues",
29-
"source": "https://github.com/wwwoda/wp-plugin-scripts-styles-loader"
28+
"issues": "https://github.com/wwwoda/woda-scripts-styles-loader/issues",
29+
"source": "https://github.com/wwwoda/woda-scripts-styles-loader"
3030
},
3131
"require": {
3232
"ext-json": "*",

readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: @davidmondok
33
Tags: fonts, performance
44
Requires at least: 4.5
55
Tested up to: 5.3
6-
Stable tag: 0.3.0
6+
Stable tag: 0.3.1
77
License: GPLv2 or later
88
License URI: https://www.gnu.org/licenses/gpl-2.0.html
99

woda-scripts-styles-loader.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
<?php
22
/**
33
* Plugin Name: Woda Scripts Styles Loader
4-
* Plugin URI: https://github.com/wwwoda/wp-plugin-scripts-styles-loader
4+
* Plugin URI: https://github.com/wwwoda/woda-scripts-styles-loader
55
* Description: ...
6-
* Version: 0.3.0
6+
* Version: 0.3.1
77
* Author: Woda
88
* Author URI: https://www.woda.at
99
* License: GNU General Public License v2
1010
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
1111
* Domain Path: /languages
1212
* Text Domain: woda-scripts-styles-loader
13-
* GitHub Plugin URI: https://github.com/wwwoda/wp-plugin-scripts-styles-loader
13+
* GitHub Plugin URI: https://github.com/wwwoda/woda-scripts-styles-loader
14+
* Release Asset: true
1415
*
1516
* @package Woda_Scripts_Styles_Loader
1617
*/

0 commit comments

Comments
 (0)