Skip to content

Commit

Permalink
Changed: Publishing the doc site is no longer automatically done by d…
Browse files Browse the repository at this point in the history
…oc publishing branch. It's now done by a manual GitHub Actions workflow
  • Loading branch information
kevin-lee committed Feb 14, 2021
1 parent 9491b38 commit c36a372
Showing 1 changed file with 14 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
name: Publish GitHub Pages
name: Manual Publish GitHub Pages

on:
push:
branches:
- publish-docs
workflow_dispatch:

jobs:
build:
build_and_publish_doc_site:
if: github.ref != 'refs/heads/gh-pages' && github.ref != 'gh-pages'

runs-on: ubuntu-latest

strategy:
matrix:
scala:
- { version: "2.12.11", binary-version: "2.12", java-version: "11" }
- { version: "2.12.12", binary-version: "2.12", java-version: "11" }

steps:
- uses: actions/checkout@v2
Expand All @@ -25,21 +24,16 @@ jobs:
node-version: '14.4.0'
registry-url: 'https://registry.npmjs.org'

- name: Cache Coursier
uses: actions/cache@v1
with:
path: ~/.cache/coursier
key: ${{ runner.os }}-coursier-scala-${{ matrix.scala.binary-version }}-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('**/build.properties') }}
restore-keys: |
${{ runner.os }}-coursier-scala-${{ matrix.scala.binary-version }}-
- name: Cache Ivy
uses: actions/cache@v1
- name: Cache SBT
uses: actions/cache@v2
with:
path: ~/.ivy2/cache
key: ${{ runner.os }}-ivy-scala-${{ matrix.scala.binary-version }}-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('**/build.properties') }}
path: |
~/.ivy2/cache
~/.cache/coursier
~/.sbt
key: ${{ runner.os }}-sbt-${{ matrix.scala.binary-version }}-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('**/build.properties') }}
restore-keys: |
${{ runner.os }}-ivy-scala-${{ matrix.scala.binary-version }}-
${{ runner.os }}-sbt-${{ matrix.scala.binary-version }}-
- name: Cache npm
uses: actions/cache@v1
Expand All @@ -57,6 +51,7 @@ jobs:
run: |
sbt clean \
docusaurGenerateAlgoliaConfigFile \
docusaurGenerateGoogleAnalyticsConfigFile \
docusaurInstall \
docusaurCleanBuild \
docusaurBuild \
Expand Down

0 comments on commit c36a372

Please sign in to comment.