Skip to content

Commit

Permalink
Added publishing of pre-releases when a tag is pushed [#549]
Browse files Browse the repository at this point in the history
 * Removed the release-specific workflow.
   - Pre-releases can instead just be promoted to releases.
 * Removed creating development releases.
  • Loading branch information
mcpierce committed Dec 6, 2020
1 parent 09b5b00 commit f42e1d2
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 99 deletions.
43 changes: 0 additions & 43 deletions .github/workflows/create-release.yml

This file was deleted.

56 changes: 0 additions & 56 deletions .github/workflows/publish-merges-to-develop.yml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/publish-release-branch-changes.yml
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

0 comments on commit f42e1d2

Please sign in to comment.