Merge pull request #2036 from scalacenter/update/sbt-ci-release-1.6.0 #595
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Website | |
on: | |
push: | |
branches: [main] | |
tags: ["*"] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: coursier/setup-action@v1 | |
- name: Publish ${{ github.ref }} (without wiping sonatype-stats) | |
run: | | |
git restore --source=origin/gh-pages --worktree sonatype-stats | |
mv ./sonatype-stats ./website/static | |
sbt docs2_13/docusaurusPublishGhpages | |
env: | |
GITHUB_DEPLOY_KEY: ${{ secrets.DOC }} |