Skip to content

Commit bb48068

Browse files
committed
feat (Release) Created builds for 2.1.1 release
1 parent fd6e7c7 commit bb48068

File tree

6 files changed

+15
-10
lines changed

6 files changed

+15
-10
lines changed

.github/workflows/main-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
operating-system: [ubuntu-latest]
20-
php-versions: ['8.0', '7.1']
20+
php-versions: ['8.1', '7.1']
2121
steps:
2222
- name: Checkout
2323
uses: actions/checkout@v2
@@ -54,8 +54,8 @@ jobs:
5454
if: ${{ '7.1' == matrix.php-versions }}
5555
run: cp tools/php71/phpcpd /usr/local/bin/phpcpd
5656

57-
- name: Install Global Phpcpd for Php8.0
58-
if: ${{ '8.0' == matrix.php-versions }}
57+
- name: Install Global Phpcpd for Php8.1
58+
if: ${{ '8.1' == matrix.php-versions }}
5959
run: cp tools/php80/phpcpd /usr/local/bin/phpcpd
6060

6161
- name: Testing the Aplication

.github/workflows/release.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ on:
99
branches-ignore: [ master ]
1010

1111
env:
12-
version: '2.1.0'
1312
extensions: :opcache #intl, pcov #fileinfo is needed for Windows
1413

1514
jobs:
@@ -41,7 +40,13 @@ jobs:
4140
run: composer global require humbug/box
4241

4342
- name: Build the Aplication
44-
run: php githooks app:build --build-version=${{ env.version }}
43+
run: |
44+
branch=${GITHUB_REF##*/}
45+
echo ${branch}
46+
prefix='rc-'
47+
version=${branch#"$prefix"}
48+
echo $version
49+
php githooks app:build --build-version=${version}
4550
4651
- uses: actions/upload-artifact@master
4752
if: ${{ '7.1' == matrix.php-versions }}
@@ -63,7 +68,7 @@ jobs:
6368
fail-fast: false
6469
matrix:
6570
operating-system: [ubuntu-latest]
66-
php-versions: ['7.2', '8.0']
71+
php-versions: ['7.2', '8.1']
6772
steps:
6873
- name: Checkout
6974
uses: actions/checkout@v2
@@ -103,7 +108,7 @@ jobs:
103108
path: 'builds/php7.1'
104109

105110
- uses: actions/download-artifact@master
106-
if: ${{ '8.0' == matrix.php-versions }}
111+
if: ${{ '8.1' == matrix.php-versions }}
107112
with:
108113
name: githooks-73
109114
path: builds

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<a href="https://github.com/Wtyd/githooks/commits/" title="Last Commit"><img src="https://img.shields.io/github/last-commit/Wtyd/githooks"></a>
55
<a href="https://github.com/Wtyd/githooks/issues" title="Open Issues"><img src="https://img.shields.io/github/issues/Wtyd/githooks"></a>
66
<a href="https://github.com/Wtyd/githooks/blob/master/LICENSE" title="License"><img src="https://img.shields.io/github/license/Wtyd/githooks"></a>
7-
<a href="#tada-php-support" title="PHP Versions Supported"><img alt="PHP Versions Supported" src="https://img.shields.io/badge/php-7.1%20to%208.0-777bb3.svg?logo=php&logoColor=white&labelColor=555555"></a>
7+
<a href="#tada-php-support" title="PHP Versions Supported"><img alt="PHP Versions Supported" src="https://img.shields.io/badge/php-7.1%20to%208.1-777bb3.svg?logo=php&logoColor=white&labelColor=555555"></a>
88
<img src="https://img.shields.io/github/v/release/Wtyd/githooks">
99
</p>
1010
<p align="center">
@@ -119,7 +119,7 @@ phpcs:
119119
All the available options are in the [wiki](https://github.com/Wtyd/githooks/wiki/ConfigurationFile).
120120

121121
# Contributing
122-
Contributions from others would be very much appreciated! Send pull [request](https://github.com/Wtyd/githooks/pulls)/[issue](https://github.com/Wtyd/githooks/issues). Check all steps for do that at Wiki section for [Contributing](https://github.com/Wtyd/githooks/wiki/Contributing). Thanks!
122+
Contributions from others would be very much appreciated! Send [pull request](https://github.com/Wtyd/githooks/pulls)/[issue](https://github.com/Wtyd/githooks/issues). Check all steps for do that at Wiki section for [Contributing](https://github.com/Wtyd/githooks/wiki/Contributing). Thanks!
123123

124124
# License
125125
The MIT License (MIT). Please see [License File](/LICENSE) for more information.

builds/githooks

438 Bytes
Binary file not shown.

builds/php7.1/githooks

69 Bytes
Binary file not shown.

tests/System/Release/NewVersionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function it_prints_the_new_version()
2323
{
2424
passthru("$this->githooks --version", $exitCode);
2525

26-
$newVersion = '2.1.0';
26+
$newVersion = '2.1.1';
2727
$this->assertStringContainsString("GitHooks $newVersion", $this->getActualOutput());
2828
$this->assertEquals(0, $exitCode);
2929
}

0 commit comments

Comments
 (0)