Skip to content
This repository was archived by the owner on Nov 30, 2022. It is now read-only.

Commit 545926f

Browse files
Merge pull request #17 from codenamephp/releaseInfo
Release info
2 parents cff34ce + c31f21d commit 545926f

4 files changed

Lines changed: 42 additions & 4 deletions

File tree

.github/release-drafter.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
template: |
2+
## What’s Changed
3+
4+
$CHANGES
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
name: Update Changelog
2-
on:
2+
on:
33
push:
4-
pull_request:
4+
branches:
5+
- master
56

67
jobs:
78
changelog:
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Update Releaseinfo
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
jobs:
8+
update_version:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: calculate next version
12+
id: version
13+
uses: patrickjahns/version-drafter-action@v1
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16+
- uses: release-drafter/release-drafter@master
17+
with:
18+
version: ${{ format('{0}', steps.version.outputs.next-version) }}
19+
tag: ${{ format('{0}', steps.version.outputs.next-version) }}
20+
name: ${{ format('{0}', steps.version.outputs.next-version) }}
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.travis.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ env:
1515
branches:
1616
only:
1717
- master
18-
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/
18+
- /^\d+\.\d+(\.\d+)?(-\S*)?$/
1919

2020
services: docker
2121

@@ -27,4 +27,15 @@ install:
2727
script:
2828
- chef exec foodcritic .
2929
- chef exec rubocop
30-
- chef exec kitchen test
30+
- chef exec kitchen test
31+
32+
deploy:
33+
provider: chef-supermarket
34+
user_id: "codenamephp"
35+
client_key: "codenamephp.pem"
36+
cookbook_category: "Utilities"
37+
on:
38+
tags: true
39+
40+
after_deploy:
41+
- chef exec berks upload

0 commit comments

Comments
 (0)