Skip to content

Commit

Permalink
Fix release process
Browse files Browse the repository at this point in the history
  • Loading branch information
mpkorstanje committed Nov 14, 2022
1 parent 824f4f5 commit 6d78aef
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 24 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/release-github.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
name: Release on GitHub
name: Release GitHub

on:
push:
branches: [release/*]

jobs:
pre-release-check:
uses: cucumber/.github/.github/workflows/prerelease-checks.yml@main

create-github-release:
name: Create GitHub Release and Git tag
runs-on: ubuntu-latest
needs: [pre-release-check]
environment: Release
permissions:
contents: write
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: cucumber/action-create-github-release@v1.1.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
25 changes: 7 additions & 18 deletions .github/workflows/release-java.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,21 @@
name: Release maven package
name: Release Maven

on:
push:
branches:
- release/*
branches: [release/*]

jobs:
pre-release-check:
uses: cucumber/.github/.github/workflows/prerelease-checks.yml@main

test-java:
uses: ./.github/workflows/test-java.yml

publish-mvn:
name: Publish Maven Package
needs: [pre-release-check, test-java]
runs-on: ubuntu-latest
environment: Release

steps:
- uses: actions/checkout@v2

- uses: actions/setup-java@v2
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "11"
cache: "maven"

distribution: 'temurin'
java-version: '11'
cache: 'maven'
- uses: cucumber/action-publish-mvn@v2.0.0
with:
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Fixed
- Fixed release process

## [4.0.0] - 2022-11-14
### Changed
Expand Down

0 comments on commit 6d78aef

Please sign in to comment.