Skip to content

Commit 41c9d51

Browse files
author
Artem Eroshenko
authored
migrate to gh actions (via #495)
1 parent cd135f4 commit 41c9d51

File tree

5 files changed

+90
-0
lines changed

5 files changed

+90
-0
lines changed

.github/release-drafter.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name-template: '$NEXT_MINOR_VERSION'
2+
tag-template: '$NEXT_MINOR_VERSION'
3+
categories:
4+
- title: '🚀 New Features'
5+
labels:
6+
- 'type:new feature'
7+
- title: '🔬 Improvements'
8+
labels:
9+
- 'type:enhancement'
10+
- title: '🐞 Bug Fixes'
11+
labels:
12+
- 'type:bug'
13+
14+
change-template: '* $TITLE (via #$NUMBER) - @$AUTHOR'
15+
template: |
16+
$CHANGES
17+
18+
## 👀 Links
19+
20+
[Commits since $PREVIOUS_TAG](https://github.com/allure-framework/allure2/compare/$PREVIOUS_TAG...master)

.github/workflows/build.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Build
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- '*'
7+
push:
8+
branches:
9+
- 'master'
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v1
16+
- name: Set up JDK 1.8
17+
uses: actions/setup-java@v1
18+
with:
19+
java-version: 1.8
20+
- name: Build with Gradle
21+
run: ./gradlew build
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: "Verify type labels"
2+
3+
on:
4+
pull_request:
5+
types: [opened, labeled, unlabeled, synchronize]
6+
7+
jobs:
8+
triage:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: zwaldowski/match-label-action@v2
12+
with:
13+
allowed: 'type:bug, type:enhancement, type:new feature'
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Release Draft
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
update_draft_release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: toolmantim/[email protected]
13+
env:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v1
12+
- name: Set up JDK
13+
uses: actions/setup-java@v1
14+
with:
15+
java-version: 1.8
16+
- name: "Gradle Build"
17+
run: ./gradlew build -Pversion=${GITHUB_REF:10}
18+
- name: "Gradle Publish to Bintray"
19+
env:
20+
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
21+
BINTRAY_API_KEY: ${{ secrets.BINTRAY_API_KEY }}
22+
run: ./gradlew bintrayUpload -Pversion=${GITHUB_REF:10}

0 commit comments

Comments
 (0)