Skip to content

Commit

Permalink
Refresh microsite workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
armanbilge authored Aug 20, 2024
1 parent 2482945 commit ab70b11
Showing 1 changed file with 9 additions and 28 deletions.
37 changes: 9 additions & 28 deletions .github/workflows/microsite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,54 +6,35 @@ on:
push:
branches: [docs]

env:
JABBA_INDEX: 'https://github.com/typelevel/jdk-index/raw/main/index.json'

jobs:
build:
name: Generate Microsite
runs-on: ubuntu-latest
steps:
- name: Checkout current branch (fast)
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: true

- name: Setup Java
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11

- name: Install NodeJS 14
uses: actions/setup-node@v2
with:
node-version: '14'

- name: Cache sbt
uses: actions/cache@v2
with:
path: |
~/.sbt
~/.ivy2/cache
~/.coursier/cache/v1
~/.cache/coursier/v1
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('**/project/build.properties') }}
java-version: 21
cache: sbt

- name: Cache yarn
uses: actions/cache@v2
- name: Install Node.js
uses: actions/setup-node@v4
with:
path: |
website/yarn.lock
**/node_modules
key: ${{ runner.os }}-yarn-cache-v2-${{ hashFiles('website/package.json') }}
cache: 'yarn'
cache-dependency-path: 'website/yarn.lock'

- name: Build
run: ./build.sh

- name: Publish
if: github.event_name == 'push'
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./website/build/cats-effect
Expand Down

0 comments on commit ab70b11

Please sign in to comment.