Skip to content

deploy docs

deploy docs #1758

Workflow file for this run

name: Continuous Integration
on:
pull_request:
branches: ['master']
push:
branches: ['master']
tags: [v*]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CI: true
jobs:
build:
name: Build and Test
strategy:
matrix:
scala: [2.13, 2.12, 3.3]
java: [8, 17]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: coursier/cache-action@v6
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{matrix.java}}
- uses: sbt/setup-sbt@v1
- name: Check formatting
run: sbt scalafmtCheckAll scalafmtSbtCheck
- name: Build project
run: sbt "testScoped ${{ matrix.scala }} JVM"
- name: Generate docs
if: matrix.scala == '2.13'
run:
- sbt ++${{ matrix.scala }} docs/mdoc unidoc

Check failure on line 42 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / Continuous Integration

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 42, Col: 11): A sequence was not expected
- cd website
- npm install
- npm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
# if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.REPO_GITHUB_TOKEN }}
publish_dir: ./website/build
publish:
name: Publish Artifacts
needs: [build]
if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v'))
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- uses: sbt/setup-sbt@v1
- name: coursier-cache
uses: coursier/cache-action@v6
- name: Publish artifacts
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
run: sbt ci-release