Skip to content

Commit

Permalink
Merge pull request #75 from danicheg/ci-website
Browse files Browse the repository at this point in the history
Enable website publishing in CI
  • Loading branch information
SethTisue authored Jan 7, 2024
2 parents 2ac3bc2 + 6404a68 commit e9c08af
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ jobs:
- uses: coursier/cache-action@v6
- name: Check formatting
run: sbt -v "scalafmtSbtCheck" "scalafmtCheckAll"
docs:
name: Build docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: coursier/cache-action@v6
- run: sbt docs/run
plugin-tests:
name: Compiler and SBT plugin tests
runs-on: ubuntu-latest
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/publish-website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Deploy Website
on:
push:
branches: [main]
# uncomment this once the website publishes well
# tags: ["*"]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: coursier/cache-action@v6
- name: Publish ${{ github.ref }}
run: sbt docs/docusaurusPublishGhpages
env:
GITHUB_DEPLOY_KEY: ${{ secrets.GITHUB_DEPLOY_KEY }}

0 comments on commit e9c08af

Please sign in to comment.