-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #181 from mcruzdev/issue-180
Add surge
- Loading branch information
Showing
3 changed files
with
110 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: Build Sites | ||
|
||
on: | ||
push: | ||
branches: | ||
- "main" | ||
paths-ignore: | ||
- '.gitignore' | ||
- 'CODEOWNERS' | ||
- 'LICENSE' | ||
- '*.md' | ||
- '*.adoc' | ||
- '*.txt' | ||
- '.all-contributorsrc' | ||
pull_request: | ||
paths-ignore: | ||
- '.gitignore' | ||
- 'CODEOWNERS' | ||
- 'LICENSE' | ||
- '*.md' | ||
- '*.txt' | ||
- '.all-contributorsrc' | ||
jobs: | ||
build-website: | ||
name: Build Website | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: temurin | ||
java-version: 21 | ||
cache: 'maven' | ||
|
||
- name: Build docs | ||
run: mvn -B verify --file pom.xml -DskipTests | ||
|
||
- name: Store PR id | ||
if: github.event_name == 'pull_request' | ||
run: | | ||
echo ${{ github.event.number }} > ./docs/target/generated-docs/pr-id.txt | ||
- name: Publishing docs | ||
if: github.event_name == 'pull_request' | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: docs | ||
path: ./docs/target/generated-docs | ||
retention-days: 3 | ||
|
||
- name: Build blog | ||
run: | | ||
QUARKUS_ROQ_GENERATOR_BATCH=true mvn -f blog package quarkus:run | ||
- name: Publishing blog | ||
if: github.event_name == 'pull_request' | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: blog | ||
path: ./blog/target/roq | ||
retention-days: 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters