Skip to content

Commit abdba38

Browse files
committed
Deploying and releasing using GitHub Actions
1 parent 611a632 commit abdba38

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

.github/workflows/push.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,3 @@ jobs:
1515
java-version: 1.11
1616
- name: Build with Maven
1717
run: mvn -B package --file pom.xml
18-
- name: Get Current Version
19-
run: |
20-
PROJECT_VERSION=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)
21-
::set-output name=parsegrind_version::$PROJECT_VERSION
22-
outputs:
23-
parsegrind_version:
24-
description: 'The version of Parsegrind'
25-
26-
27-

.github/workflows/release.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: Build and Deploy Release
22

33
on:
4-
release:
5-
types: [published]
4+
push:
5+
tags:
6+
- 'v*'
67

78
jobs:
89
build:
@@ -23,3 +24,13 @@ jobs:
2324
run: |
2425
echo "<settings><servers><server><id>github</id><username>cryptid-org</username><password>${GITHUB_TOKEN}</password></server></servers></settings>" > ~/.m2/settings.xml
2526
mvn deploy
27+
- name: Create Release
28+
id: create_release
29+
uses: actions/create-release@v1.0.0
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
with:
33+
tag_name: ${{ github.ref }}
34+
release_name: Release ${{ github.ref }}
35+
draft: false
36+
prerelease: false

0 commit comments

Comments
 (0)