Skip to content

Release: BAST Serialization Complete (Phases 1-8) (#718) #150

Release: BAST Serialization Complete (Phases 1-8) (#718)

Release: BAST Serialization Complete (Phases 1-8) (#718) #150

Workflow file for this run

# Sample workflow for building and deploying a Hugo site to GitHub Pages
name: Deploy Documentation Site to Pages
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
paths:
- 'doc/src/main/hugo/**'
- '.github/workflows/hugo.yml'
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
# Default to bash
defaults:
run:
shell: bash
jobs:
# Build job
build:
timeout-minutes: 30
runs-on: ubuntu-latest
permissions:
contents: read
env:
HUGO_VERSION: 0.112.0
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set Up JDK 25
uses: actions/setup-java@v4
with:
java-version: '25'
distribution: 'temurin'
cache: sbt
- name: Set Up SBT
uses: sbt/setup-sbt@7e33f738678e47369c83dcb4b1d9c65d66eb3cdd # v1
- name: Coursier Caching
uses: coursier/cache-action@2addd381bd2c931f42d4b734b9d0c9b73aac16fb # v6
- name: Configure sbt GitHub Packages credentials
run: |
mkdir -p ~/.sbt/1.0
cat > ~/.sbt/1.0/github.sbt << 'EOF'
credentials += Credentials(
"GitHub Package Registry",
"maven.pkg.github.com",
"x-access-token",
sys.env.getOrElse("GITHUB_TOKEN", "")
)
EOF
- name: Cache ScalaDoc Output
uses: actions/cache@v4
with:
path: |
**/target/scala-3.4.3/api
**/target/scala-3.4.3/unidoc
key: ${{ runner.os }}-scaladoc-${{ hashFiles('**/*.scala') }}
restore-keys: |
${{ runner.os }}-scaladoc-
- name: Setup Hugo
uses: peaceiris/actions-hugo@e3b661c523413d13d642651a5ba5fc0d2b344c0d # v3
with:
hugo-version: '0.112.0'
extended: true
- name: Install Dart Sass
run: sudo snap install dart-sass
- name: Setup Pages
id: pages
uses: actions/configure-pages@v4
- name: Generate ScalaDoc
run: |
sbt doc/test doc/unidoc
- name: Build with Hugo
env:
# For maximum backward compatibility with Hugo modules
HUGO_ENVIRONMENT: production
HUGO_ENV: production
run: |
cd doc/src/main/hugo ; \
hugo --minify --baseURL "https://riddl.tech" \
--printMemoryUsage --noBuildLock --cleanDestinationDir \
--enableGitInfo --noBuildLock --printPathWarnings --printMemoryUsage
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./doc/src/main/hugo/public
# Deployment job
deploy:
timeout-minutes: 10
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4