Skip to content

Commit

Permalink
Check released artifact at maven.org and then register release (#40)
Browse files Browse the repository at this point in the history
* Create check-and-register.yml
* Create release.yml
* Bump template version to 2.1.7

---------

Co-authored-by: Konstantin Zaporozhtsev <[email protected]>
  • Loading branch information
fishinitself and octopusden committed Oct 6, 2023
1 parent 31058e0 commit f7ecabc
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 2 deletions.
17 changes: 17 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# .github/release.yml

changelog:
categories:
- title: New features and enhancements
labels:
- '*'
exclude:
labels:
- dependencies
- bug
- title: Bugfixes
labels:
- bug
- title: Dependencies
labels:
- dependencies
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [push, pull_request, workflow_dispatch]

jobs:
run-build-and-deploy:
uses: octopusden/octopus-base/.github/workflows/[email protected].3
uses: octopusden/octopus-base/.github/workflows/[email protected].7
with:
flow-type: hybrid
java-version: '11'
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/check-and-register.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Check for artifact and register release

on:
workflow_run:
workflows: ["Gradle Release"]
types:
- completed

jobs:
build:
uses: octopusden/octopus-base/.github/workflows/[email protected]
if: "${{ github.event.workflow_run.conclusion == 'success' }}"
with:
artifact-pattern: "octopus-employee/employee-service/_VER_/employee-service-_VER_.jar"
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
build:
uses: octopusden/octopus-base/.github/workflows/[email protected].3
uses: octopusden/octopus-base/.github/workflows/[email protected].7
with:
flow-type: hybrid
java-version: '11'
Expand Down

0 comments on commit f7ecabc

Please sign in to comment.