-
Notifications
You must be signed in to change notification settings - Fork 103
48 lines (43 loc) · 1.39 KB
/
patch_release.yml
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
name: Patch Release
on:
workflow_dispatch:
inputs:
branch:
description: 'Branch to build off of'
required: true
jobs:
gradle:
runs-on: ubuntu-latest
permissions:
checks: write
contents: write
packages: write
pages: read
pull-requests: write
steps:
- name: Checkout sources
uses: actions/[email protected]
with:
ref: ${{ inputs.branch }}
ssh-key: ${{ secrets.DEPLOY_KEY }}
- name: Setup Base Environment
uses: ./actions/setup-base-env
- name: Setup FDB
uses: ./actions/setup-fdb
# Push a version bump back to main. There are failure scenarios that can result
# in published artifacts but an erroneous build, so it's safer to bump the version
# at the beginning
- name: Configure Git
run: |
git config --global user.name 'FoundationDB CI'
git config --global user.email '[email protected]'
- name: Increment Version
run: python build/versionutils.py gradle.properties -u PATCH --increment --commit
- name: Push Version Update
run: git push
- name: Build and publish release
uses: ./actions/release-build-publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAVEN_USER: ${{ secrets.MAVEN_USER }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}