Skip to content

Upgrade shadow-cljs in examples to 3.2.0 (#835) #678

Upgrade shadow-cljs in examples to 3.2.0 (#835)

Upgrade shadow-cljs in examples to 3.2.0 (#835) #678

Workflow file for this run

#
# This GitHub Actions workflow builds and deploys the re-frame documentation website hosted on GitHub Pages at:
# https://day8.github.io/re-frame/
#
# More about the build process are documented at
# https://github.com/day8/re-frame/blob/feature/mkdocs/docs/developer-notes.md
#
# PREREQUISITE: the repository's Pages source must be set to "GitHub Actions"
# (Settings -> Pages -> Build and deployment -> Source). If it is still set
# to "Deploy from a branch" then the deploy-pages step in the github-pages
# job below will fail and https://day8.github.io/re-frame/ will continue to
# serve the last commit on the (now-unused) gh-pages branch until the
# setting is corrected.
name: docs
on:
push:
branches: 'master'
# Allow only one concurrent deployment, but do not cancel in-progress runs
# so that an in-flight Pages deployment can complete before the next starts.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
re-frame-docs-app:
name: Re-frame Docs App
runs-on: ubuntu-24.04
steps:
- name: Checkout Current Branch
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
- run: git config --global --add safe.directory /__w/re-frame/re-frame
- name: Maven cache
id: maven-cache
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('project.clj', '.github/workflows/**') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Setup java
uses: actions/setup-java@17f84c3641ba7b8f6deff6309fc4c864478f5d62 # v3
with:
distribution: 'temurin'
java-version: '24'
- name: Install clojure tools
uses: DeLaGuardo/setup-clojure@bc7570e912b028bbcc22f457adec7fdf98e2f4ed # 12.5
with:
cli: 'latest'
bb: 'latest'
- run: bb release-docs
env:
CLOJARS_USERNAME: ${{ secrets.CLOJARS_USERNAME }}
CLOJARS_TOKEN: ${{ secrets.CLOJARS_TOKEN }}
GITHUB_USERNAME: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create re-frame-docs App Artifact
working-directory: docs
run: |
mv api-re-frame.alpha.md js
mv api-re-frame.core.md js
tar Jcf re-frame-docs-app.tar.xz js
- name: Upload re-frame-docs App Artifact
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: re-frame-docs-app
path: docs/re-frame-docs-app.tar.xz
mkdocs:
name: MkDocs
needs:
- re-frame-docs-app
runs-on: ubuntu-24.04
container:
image: "squidfunk/mkdocs-material:5.5.9"
steps:
- name: Checkout Current Branch
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- run: git config --global --add safe.directory /__w/re-frame/re-frame
- name: Download re-frame-docs App Artifact
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
with:
name: re-frame-docs-app
path: docs
- name: Extract re-frame-docs App Artifact
working-directory: docs
run: |
tar Jxf re-frame-docs-app.tar.xz
mv js/api-re-frame.alpha.md api-re-frame.alpha.md
mv js/api-re-frame.core.md api-re-frame.core.md
- name: Build MkDocs Documentation
run: mkdocs build
- name: Create MkDocs Artifact
run: tar zcf mkdocs.tar.gz site/
- name: Upload MkDocs Artifact
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: mkdocs
path: mkdocs.tar.gz
github-pages:
name: GitHub Pages
needs: mkdocs
runs-on: ubuntu-24.04
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Download MkDocs Artifact
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
with:
name: mkdocs
- name: Extract MkDocs Artifact
run: tar zxf mkdocs.tar.gz
- name: Upload Pages Artifact
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
with:
path: site/
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0