-
Notifications
You must be signed in to change notification settings - Fork 1
60 lines (50 loc) · 1.53 KB
/
deploy-website.yml
File metadata and controls
60 lines (50 loc) · 1.53 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
50
51
52
53
54
55
56
57
58
59
60
name: Deploy Website
on:
push:
branches: [ master, main ]
paths:
- 'website/**'
- '.github/workflows/deploy-website.yml'
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0 # Fetch all history for proper git info
- name: Build website
shell: bash
run: |
# Fetch GitHub Pages URL
OWNER=$(echo "$GITHUB_REPOSITORY" | cut -d '/' -f 1)
REPO=$(echo "$GITHUB_REPOSITORY" | cut -d '/' -f 2)
SITE_URL="https://${OWNER}.github.io"
SITE_PATH="/${REPO}/"
echo "SITE_URL=$SITE_URL" >> $GITHUB_ENV
echo "SITE_PATH=$SITE_PATH" >> $GITHUB_ENV
echo "GITHUB_REPOSITORY=$GITHUB_REPOSITORY SITE_DIR=$SITE_DIR SITE_URL=$SITE_URL SITE_PATH=$SITE_PATH"
QUARKUS_ROQ_GENERATOR_BATCH=true ./mvx mvn clean package quarkus:run -f website -DskipTests --no-transfer-progress \
-Dquarkus.http.root-path=$SITE_PATH \
-Dsite.url=$SITE_URL
- name: Upload build artifacts
uses: actions/upload-pages-artifact@v4
with:
path: website/target/roq
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4