Add sbt-tpolecat #38
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: Build and publish the documentation microsite | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
paths: | |
- 'figlet4s-microsite/**' | |
- 'project/**' | |
- 'build.sbt' | |
pull_request: | |
branches: | |
- master | |
paths: | |
- 'figlet4s-microsite/**' | |
- 'project/**' | |
- 'build.sbt' | |
jobs: | |
publish_microsite: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
# Use this or sbt-dynver won't see the tag | |
fetch-depth: 0 | |
- name: Install Jekyll | |
run: | | |
sudo gem install bundler 'jekyll:~>4.0.0' | |
echo "$HOME/gems/bin" >> $GITHUB_PATH | |
echo "GEM_HOME=$HOME/gems" >> $GITHUB_ENV | |
- name: Publish microsite | |
run: sbt "figlet4sMicrosite/publishMicrosite" | |
env: | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" |