forked from allure-framework/allure2
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (58 loc) · 2.53 KB
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Release
on:
release:
types: [published]
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
- run: echo "::set-output name=version::${GITHUB_REF:10}"
id: release
- name: "Gradle Build"
run: ./gradlew build buildRpm buildDeb -Pversion=${{ steps.release.outputs.version }}
- name: "Gradle Publish to Bintray"
env:
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
BINTRAY_API_KEY: ${{ secrets.BINTRAY_API_KEY }}
run: ./gradlew bintrayUpload -Pversion=${{ steps.release.outputs.version }}
- name: "Publish Deb to GitHub"
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./allure-commandline/build/distributions/allure_${{ steps.release.outputs.version }}-1_all.deb
asset_name: allure_${{ steps.release.outputs.version }}-1_all.deb
asset_content_type: application/octet-stream
- name: "Publish Rpm to GitHub"
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./allure-commandline/build/distributions/allure-${{ steps.release.outputs.version }}-1.noarch.rpm
asset_name: allure_${{ steps.release.outputs.version }}-1.noarch.rpm
asset_content_type: application/octet-stream
- name: "Publish Zip to GitHub"
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./allure-commandline/build/distributions/allure-commandline-${{ steps.release.outputs.version }}.zip
asset_name: allure-${{ steps.release.outputs.version }}.zip
asset_content_type: application/octet-stream
- name: "Publish Tgz to GitHub"
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./allure-commandline/build/distributions/allure-commandline-${{ steps.release.outputs.version }}.tgz
asset_name: allure-${{ steps.release.outputs.version }}.tgz
asset_content_type: application/octet-stream