Repository navigation
49 lines (47 loc) · 1.73 KB
/
Copy pathdeploy-site.yml
File metadata and controls
49 lines (47 loc) · 1.73 KB
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
name: Roq Site Deploy
on:
push:
branches: [ main ] # Switch to the branch which should be deployed to GitHub Pages
paths:
- docs/**
- .github/scripts/**
- .github/workflows/deploy-site.yml
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read # to check out the site sources
pages: write # to upload the GitHub Pages artifact
id-token: write # to verify the deployment originates from an appropriate source
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Generate Roq Site
uses: quarkiverse/quarkus-roq@d0bdb4255f4dcc3ddd218c83f9dd19faa823ac31 # v1.1
with:
site-directory: ./docs/
github-pages: 'false'
site-url: https://a2aproject.github.io/a2a-java
- name: Create latest documentation alias
run: .github/scripts/create-latest-alias.sh docs/data/versions docs/target/roq
- name: Setup Pages
uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6
- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5
with:
path: docs/target/roq
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5
with:
timeout: 1800000