Skip to content

added release workflow #18

added release workflow

added release workflow #18

Workflow file for this run

name: Site Generator
on:
push:
branches: ["main"]
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: "17"
distribution: "temurin"
cache: "sbt"
- name: Build site
run: sbt doc
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Upload site
uses: actions/[email protected]
with:
path: ./target/scala-3.3.3/api
deploy:
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@v1