forked from rhdhorchestrator/parodos
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (42 loc) · 1.39 KB
/
release_manual.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Release new version
on:
workflow_dispatch:
permissions:
pull-requests: write
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: "Git config"
run: |
git config user.name 'Parodos bot'
git config user.email '[email protected]'
- name: Configure Maven settings
run: |
mkdir -p ~/.m2/
echo "<settings><servers><server><id>ossrh</id><username>${{ secrets.MAVEN_USER }}</username><password>${{ secrets.MAVEN_PASSWORD }}</password></server></servers></settings>" > ~/.m2/settings.xml
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
registry: "quay.io"
username: "${{ secrets.QUAY_GITHUB_USER }}"
password: "${{ secrets.QUAY_GITHUB_TOKEN }}"
- name: Import GPG secret key
run: |
mkdir -p ~/.gnupg/
echo "${{ secrets.GPG }}" | base64 --decode > ~/.gnupg/private.key
gpg --batch --import ~/.gnupg/private.key
- name: "Do the release"
run: |
make release-all
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
title: "NON-issue: bump version"