Skip to content

Commit f812f8c

Browse files
committed
chore: Auto-release
1 parent 0f44ec1 commit f812f8c

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: release-workflow # You may choose a different name
2+
run-name: Release run ${{ github.run_number }} # Enumerates entries in the "workflow runs" view
3+
on:
4+
workflow_dispatch: # Only run when manually started
5+
jobs:
6+
release: # Arbitrarily chosen
7+
name: Release # Arbitrarily chosen
8+
runs-on: ubuntu-22.04 # May also run on other kinds of distros
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v3
12+
- name: Setup Java
13+
uses: actions/setup-java@v3 # Does also set up Maven and GPG
14+
with:
15+
distribution: 'temurin' # As good as any other, see: https://github.com/actions/setup-java#supported-distributions
16+
java-package: 'jdk'
17+
java-version: '11'
18+
check-latest: true
19+
server-id: 'central'
20+
server-username: MVN_CENTRAL_USERNAME
21+
server-password: MVN_CENTRAL_PASSWORD
22+
cache: 'maven'
23+
- name: Build & Deploy
24+
run: |
25+
mvn -B gitflow:release
26+
env:
27+
MVN_CENTRAL_USERNAME: ${{ secrets.MVN_CENTRAL_USERNAME }}
28+
MVN_CENTRAL_PASSWORD: ${{ secrets.MVN_CENTRAL_PASSWORD }}

0 commit comments

Comments
 (0)