Skip to content

Commit

Permalink
migrate to github actions (via #167)
Browse files Browse the repository at this point in the history
  • Loading branch information
eroshenkoam authored Dec 3, 2020
1 parent 2c4eabe commit 6f15083
Show file tree
Hide file tree
Showing 6 changed files with 93 additions and 42 deletions.
17 changes: 17 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name-template: '$NEXT_MINOR_VERSION'
tag-template: '$NEXT_MINOR_VERSION'
categories:
- title: '🚀 New Features'
label: 'type:new feature'
- title: '🔬 Improvements'
label: 'type:improvement'
- title: '🐞 Bug Fixes'
label: 'type:bug'

change-template: '* $TITLE (via #$NUMBER) - @$AUTHOR'
template: |
$CHANGES
## 👀 Links
[Commits since $PREVIOUS_TAG](https://github.com/allure-framework/allure-bamboo/compare/$PREVIOUS_TAG...master)
28 changes: 28 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build

on:
pull_request:
branches:
- '*'
push:
branches:
- 'master'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Maven Cache
uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-
restore-keys: |
${{ runner.os }}-maven-
- name: Maven Build
run: ./mvnw clean package
14 changes: 14 additions & 0 deletions .github/workflows/release-draft.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Release Draft

on:
push:
branches:
- master

jobs:
update_draft_release:
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release

on:
workflow_dispatch:
inputs:
releaseVersion:
description: 'Release version'
required: true
developmentVersion:
description: 'Development version'
required: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Save Settings
run: echo ${BINTRAY_SETTINGS} > ~/.m2/settings.xml
env:
BINTRAY_SETTINGS: ${{ secrets.BINTRAY_SETTINGS }}
- name: Release
run: |
./mvnw release:prepare release:perform -B \
-DreleaseVersion=${{ github.event.inputs.releaseVersion }} \
-DdevelopmentVersion=${{ github.event.inputs.developmentVersion }}-SNAPSHOT
env:
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
BINTRAY_API_KEY: ${{ secrets.BINTRAY_API_KEY }}
41 changes: 0 additions & 41 deletions Jenkinsfile

This file was deleted.

2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@

<distributionManagement>
<repository>
<id>bintray-generic</id>
<id>qameta-maven</id>
<url>https://api.bintray.com/maven/qameta/maven/allure-bamboo/;publish=1</url>
</repository>
</distributionManagement>
Expand Down

0 comments on commit 6f15083

Please sign in to comment.