-
Notifications
You must be signed in to change notification settings - Fork 67
37 lines (34 loc) · 1.14 KB
/
deploy-documentation.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
name: "Deploy documentation to website"
on:
push:
branches:
- master
workflow_dispatch:
concurrency:
group: "workflow = ${{ github.workflow }}, ref = ${{ github.event.ref }}, pr = ${{ github.event.pull_request.id }}"
cancel-in-progress: ${{ github.event_name == 'pull_request' || github.repository != 'graalvm/native-build-tools' }}
jobs:
deploy-documentation:
name: "Regenerate documentation website"
if: github.repository == 'graalvm/native-build-tools'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
java-version: [ 17 ]
os: [ ubuntu-20.04 ]
steps:
- name: "☁ Checkout repository"
uses: actions/checkout@v4
with:
ssh-key: "${{ secrets.SSH_PRIVATE_KEY }}"
- name: "🔧 Prepare environment"
uses: ./.github/actions/prepare-environment
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
java-version: ${{ matrix.java-version }}
push-access: 1
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: "🌍 Build and publish documentation"
run: |
./gradlew :docs:gitPublishPush