-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added publishing of pre-releases when a tag is pushed [#549]
* Removed the release-specific workflow. - Pre-releases can instead just be promoted to releases. * Removed creating development releases.
- Loading branch information
Showing
3 changed files
with
37 additions
and
99 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# GOAL: Create pre-releases when changes are pushed to a release branch. On success it creates a tag for the build. | ||
# Such a release can then be promoted to a full release. | ||
|
||
name: "Publish release branch changes" | ||
|
||
on: | ||
push: | ||
tags: | ||
- v* | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
- name: Cache Maven artifacts | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
- name: Setup build environment | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 12 | ||
- name: Create the release artifact | ||
run: mvn package -Pci -Dassembly.name=RELEASE | ||
- name: Create pre-release | ||
uses: "marvinpinto/action-automatic-releases@latest" | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
draft: false | ||
prerelease: true | ||
title: Changes For 0.8.0-SNAPSHOT | ||
files: | | ||
release/comixed-release-0.8.0-SNAPSHOT-RELEASE.zip |