-
Notifications
You must be signed in to change notification settings - Fork 103
74 lines (68 loc) · 2.25 KB
/
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Release
on:
workflow_dispatch:
jobs:
gradle:
runs-on: ubuntu-latest
permissions:
checks: write
contents: write
packages: write
pull-requests: write
steps:
- name: Checkout sources
uses: actions/[email protected]
with:
ssh-key: ${{ secrets.DEPLOY_KEY }}
- name: Setup Base Environment
id: setup-base
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 --increment --commit
- name: Push version increment
run: git push
- name: Build and publish
uses: ./actions/release-build-publish
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAVEN_USER: ${{ secrets.MAVEN_USER }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
# Build documentation.
- name: Cache Python Environment
uses: actions/cache@v4
with:
path: docs/sphinx/.venv
key: ${{ runner.os }}-sphinx-python-${{ steps.setup-base.outputs.python-version }}-${{ hashFiles('docs/sphinx/requirements.txt') }}
- name: Build Documentation Site
uses: ./actions/run-gradle
with:
gradle_command: documentationSite -PreleaseBuild=true
- name: Upload Documentation
id: doc_upload
uses: actions/upload-pages-artifact@v3
with:
path: docs/sphinx/.out/html/
deploy_docs:
runs-on: ubuntu-latest
needs: gradle
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.doc_upload.outputs.page_url }}
steps:
- name: Deploy Documentation
uses: actions/deploy-pages@v4