Skip to content

ci: add github pages environment #15

ci: add github pages environment

ci: add github pages environment #15

Workflow file for this run

name: main
on:
push:
branches:
- "*"
jobs:
build:
environment:
name: github-pages
url: ${{ steps.build.outputs.page_url }}
permissions:
pages: write
id-token: write
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: coursier/cache-action@v6
- uses: VirtusLab/scala-cli-setup@main
- name: Tests
run: make test
- name: Release
run: make release
- name: Site & Permissions
run: make site
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2